Jump to content

Uploaded images, sideways (iOS)


Go to solution Solved by Matt,

Recommended Posts

Posted

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?

Posted

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? 

Posted

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.

Posted

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

 

Posted

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?

Posted (edited)

It does. I wonder if there would be any logs somewhere? Would it help to raise the log level in ACP?

 

image.thumb.png.0915191ceb2a81b8443d414f78392ee1.png

 

image.thumb.png.89d579256b2649f5fdf350fd6ac582b1.png

 

image.png.fae66217c946a0b40a7a72d41b3e692e.png

 

Edited by _Vault_
Posted

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)

Posted

image.thumb.jpg.6fdcb41442c665232a3706cb8ffcc29b.jpg

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.

Posted

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. 

Posted

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.

Posted
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...

image.png.e8ca356b105c8cd4f757ce884f70853e.png

Posted

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. 

  • 2 weeks later...
  • 2 years later...
Posted
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...