_Vault_ Posted March 13, 2022 Posted March 13, 2022 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?
Marc Posted March 14, 2022 Posted March 14, 2022 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?
_Vault_ Posted March 15, 2022 Author Posted March 15, 2022 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.
_Vault_ Posted March 15, 2022 Author Posted March 15, 2022 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
Mark H Posted March 15, 2022 Posted March 15, 2022 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?
_Vault_ Posted March 15, 2022 Author Posted March 15, 2022 (edited) It does. I wonder if there would be any logs somewhere? Would it help to raise the log level in ACP? Edited March 15, 2022 by _Vault_
_Vault_ Posted March 15, 2022 Author Posted March 15, 2022 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)
Marc Posted March 16, 2022 Posted March 16, 2022 What type of image is it that you are uploading? Do you have some examples? Also, if you upload here, does it work?
_Vault_ Posted March 17, 2022 Author Posted March 17, 2022 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.
Marc Posted March 18, 2022 Posted March 18, 2022 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.
Tennman Posted March 18, 2022 Posted March 18, 2022 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. crmarks 1
Tennman Posted March 18, 2022 Posted March 18, 2022 Here is a screenshot from my admin panel. It appears exif is working properly.
_Vault_ Posted March 19, 2022 Author Posted March 19, 2022 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...
Tennman Posted March 20, 2022 Posted March 20, 2022 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. Karma Goddess 1
mtlurb Posted March 20, 2022 Posted March 20, 2022 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. :) bradl 1
JohnDar Posted March 26, 2022 Posted March 26, 2022 Same here, not working properly since upgrade to 4.6.11
Marc Posted March 28, 2022 Posted March 28, 2022 We are aware of the issue, and looking into why its happening. Tennman 1
Management Solution Matt Posted March 28, 2022 Management Solution Posted March 28, 2022 We believe we have a fix for April's release. Tennman, crmarks and Marc 2 1
Tennman Posted April 10, 2022 Posted April 10, 2022 April's update corrected the problem for me. Thank you! crmarks 1
Marc Posted April 11, 2022 Posted April 11, 2022 On 4/10/2022 at 3:11 AM, Tennman said: April's update corrected the problem for me. Thank you! Thank you for confirming Tennman 1
_Vault_ Posted April 13, 2022 Author Posted April 13, 2022 On 4/10/2022 at 4:11 AM, Tennman said: April's update corrected the problem for me. Thank you! For me as well Marc 1
giventoflyfish Posted September 1 Posted September 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.
Jim M Posted September 1 Posted September 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.
giventoflyfish Posted September 1 Posted September 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.
Recommended Posts