I have a little test gallery containing 4 photos taken with an iPhone 4S. The thumbnails and normal views show the image right way up. If I click on "Original" then they are shown upside down. Any other size appears to be OK.
System details (Centos 6.2)
Operating system: Linux
PHP: 5.3.3 (Show info) [2012-04-29 14:27:04]
mysql: 5.1.61 [2012-04-29 14:27:04]
Graphics Library: GD bundled (2.0.34 compatible)
Last edited by epo (2012-04-29 15:27:53)
actually the "Original" link display the raw file, so the orientation is not taken into account as EXIF datas are not computed by Piwigo
I'm sorry, are you suggesting displaying a photo upside down is OK? Every other size is shown at the correct orientation. Displaying the original otherwise looks like a bug to me, especially as the orientation must have been recognised for the other sizes to work, so just cache that as a hint and use it for the original.
There are 2 problems with rotation on original:
1) if the graphical library is GD (default option with PHP) then you lose the EXIF/IPTC metadata
2) the loss of quality, because the photo is compressed before rewritten on disk
Considering the new feature "multisize" in Piwigo 2.4, I wonder if opening the original in the web browser is still useful. In my opinion, the only option with original should be to download it. The problem is when your original is smaller than XXL. Maybe Piwigo should store a copy in the cache, correctly rotated.
Concerning rotation, you can also read [Forum, topic 18658] [multisize] rotation
If you can't easily display the original in the correct orientation then perhaps better not to offer the option, or allow admins to have a global setting not to offer this option in their galleries (explaining why).
Last edited by epo (2012-04-29 20:53:16)