Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted March 13, 20222 yr Hey, when uploading images directly from the camera to the board, they appear sideways. I'm using php7.4.3 with ImageMagick, but I also tried GD. Both show the same result. "php7.4-common" & EXIF show as installed. apt install php7.4-exif Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'php7.4-common' instead of 'php7.4-exif' php7.4-common is already the newest version (7.4.3-4ubuntu2.10). php7.4-common set to manually installed. exif EXIF Support enabled Supported EXIF Version 0220 Supported filetypes JPEG, TIFF Multibyte decoding support using mbstring enabled Extended EXIF tag formats Canon, Casio, Fujifilm, Nikon, Olympus, Samsung, Panasonic, DJI, Sony, Pentax, Minolta, Sigma, Foveon, Kyocera, Ricoh, AGFA, Epson It was working before, not sure why it has changed all uf a sudden. I tried uploading a photo here, which works fine, so it must be an issue with my self-hosted enviroment. (nginx, php7.4, mariadb) Any idea where I can check whats going on?
March 14, 20222 yr The only thing that can cause this is if EXIF is not present in the image, or EXIF is not working correctly on your server. Have you tested uploading on our site in the test area?
March 15, 20222 yr Author Yep, here it works. Must be something on the server, but theres not really anything to configure afaik. I did never configure anything before... I consider upgradng to php-8 and see if that will fix it.
March 15, 20222 yr Author Now running on php 8.0 still doesnt work. 😞 php -m [PHP Modules] bz2 calendar Core ctype curl date dom exif FFI fileinfo filter ftp gd gettext gmp hash iconv igbinary imagick json libxml mbstring mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql Phar posix readline redis Reflection session shmop SimpleXML sockets sodium SPL ssh2 standard sysvmsg sysvsem sysvshm tokenizer xml xmlreader xmlwriter xsl Zend OPcache zip zlib ii php-common 2:92+ubuntu20.04.1+deb.sury.org+2 all Common files for PHP packages ii php8.0 8.0.16-1+ubuntu20.04.1+deb.sury.org+1 all server-side, HTML-embedded scripting language (metapackage) ii php8.0-bz2 8.0.16-1+ubuntu20.04.1+deb.sury.org+1 amd64 bzip2 module for PHP ii php8.0-cli 8.0.16-1+ubuntu20.04.1+deb.sury.org+1 amd64 command-line interpreter for the PHP scripting language ii php8.0-common 8.0.16-1+ubuntu20.04.1+deb.sury.org+1 amd64 documentation, examples and common module for PHP ii php8.0-curl 8.0.16-1+ubuntu20.04.1+deb.sury.org+1 amd64 CURL module for PHP ii php8.0-fpm 8.0.16-1+ubuntu20.04.1+deb.sury.org+1 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary) ii php8.0-gd 8.0.16-1+ubuntu20.04.1+deb.sury.org+1 amd64 GD module for PHP ii php8.0-gmp 8.0.16-1+ubuntu20.04.1+deb.sury.org+1 amd64 GMP module for PHP ii php8.0-igbinary 3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10 amd64 igbinary PHP serializer ii php8.0-imagick 3.6.0-4+ubuntu20.04.1+deb.sury.org+10 amd64 Provides a wrapper to the ImageMagick library ii php8.0-mbstring 8.0.16-1+ubuntu20.04.1+deb.sury.org+1 amd64 MBSTRING module for PHP ii php8.0-mysql 8.0.16-1+ubuntu20.04.1+deb.sury.org+1 amd64 MySQL module for PHP ii php8.0-opcache 8.0.16-1+ubuntu20.04.1+deb.sury.org+1 amd64 Zend OpCache module for PHP ii php8.0-readline 8.0.16-1+ubuntu20.04.1+deb.sury.org+1 amd64 readline module for PHP ii php8.0-redis 5.3.6+4.3.0-1+ubuntu20.04.1+deb.sury.org+1 amd64 PHP extension for interfacing with Redis ii php8.0-ssh2 1.3.1+0.13-6+ubuntu20.04.1+deb.sury.org+10 amd64 Bindings for the libssh2 library ii php8.0-xml 8.0.16-1+ubuntu20.04.1+deb.sury.org+1 amd64 DOM, SimpleXML, XML, and XSL module for PHP ii php8.0-zip 8.0.16-1+ubuntu20.04.1+deb.sury.org+1 amd64 Zip module for PHP
March 15, 20222 yr Please go to your ACP -> Support page and click the "phpinfo" button on the right. Does the output match your query above with respect to PHP version and loaded extensions?
March 15, 20222 yr Author It does. I wonder if there would be any logs somewhere? Would it help to raise the log level in ACP? Edited March 15, 20222 yr by _Vault_
March 15, 20222 yr Author I have now tried several pictures from my phones picture library Some work, some don't. I can not seem to find a pattern.They all taken on the same phone. Latest iOS. (Updated today)
March 16, 20222 yr What type of image is it that you are uploading? Do you have some examples? Also, if you upload here, does it work?
March 17, 20222 yr Author I go to "Add files" & select Camera Roll. Take a picture and upload it. Just like the one above. iOS seems to automatically select jpg for compatibility reasons. Here it's fine, when I do the same thing in my community, it uploads sideways.
March 18, 20222 yr It can only be something on your own server in that case. It's the EXIF PHP extension which is needed for rotation to happen on the site.
March 18, 20222 yr I'm having the same problem using android or iPhone on my site with photos getting turned sideways. No problem when uploading photos from my PC. Hope something gets figured out to correct this.
March 19, 20222 yr Author On 3/18/2022 at 9:41 AM, Marc Stridgen said: It can only be something on your own server in that case. It's the EXIF PHP extension which is needed for rotation to happen on the site. All the prerequisites are installed, the support tool doesn't complain about anything, Requirement checker confirms that my server can run IPS4.6. Are there any logs I can work with? Can I turn on some debugging mode on? It should run into some kind of error during the upload/image transformation process which is done by some php script of yours or not? I have no basis to work on without any error...
March 20, 20222 yr The only time the problem with photos turned sideways is reported is when they are uploaded from a cellphone. I'm use InMotion hosting and I'm on one of their newer servers. The AACA forum uses IPS software and is hosted on an IPS server. It has this problem with sideways photos too. I don't believe it is a server problem.
March 20, 20222 yr I have the same bug, and it appeared as soon as I upgraded to 4.6.11 This is very annoying to my users.... please we need to fix this ASAP. :)
April 11, 20222 yr On 4/10/2022 at 3:11 AM, Tennman said: April's update corrected the problem for me. Thank you! Thank you for confirming
April 13, 20222 yr Author On 4/10/2022 at 4:11 AM, Tennman said: April's update corrected the problem for me. Thank you! For me as well
September 1, 2024Sep 1 I'm running the latest version, gd, and have exif installed and I have users that see this issue occasionally when uploading from cellphones.
September 1, 2024Sep 1 37 minutes ago, giventoflyfish said: I'm running the latest version, gd, and have exif installed and I have users that see this issue occasionally when uploading from cellphones. Does this happen to the same user every time or does it vary? Just wondering if they have their phone settings set differently which may be negating the positioning meta data.
September 1, 2024Sep 1 I definitely know it happens to the one user, the owner of the site. It's hit or miss, sometimes it works, sometimes it's sideways, even in the same post.