Piwigo.org

You are not logged in. (Register / Login)

Announcement

#1 2012-04-29 15:22:33

epo
Member
Registered: 2012-04-22
Posts: 12

[2.4.0 RC2] Displaying photo at original size shows it upside down

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)

Offline

#2 2012-04-29 15:33:05

mistic100
Piwigo Team
Location: Avignon (Fr)
Registered: 2008-09-27
Posts: 1449
Website

Re: [2.4.0 RC2] Displaying photo at original size shows it upside down

actually the "Original" link display the raw file, so the orientation is not taken into account as EXIF datas are not computed by Piwigo

Offline

#3 2012-04-29 15:51:30

epo
Member
Registered: 2012-04-22
Posts: 12

Re: [2.4.0 RC2] Displaying photo at original size shows it upside down

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.

Offline

#4 2012-04-29 18:30:25

plg
Piwigo Team
Location: Paris, France, Europe
Registered: 2002-04-05
Posts: 11717
Website

Re: [2.4.0 RC2] Displaying photo at original size shows it upside down

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


Latest blog post on Piwigo.com: Piwigo 2.5 on Piwigo.com (March 7th, 2013)

Offline

#5 2012-04-29 20:52:22

epo
Member
Registered: 2012-04-22
Posts: 12

Re: [2.4.0 RC2] Displaying photo at original size shows it upside down

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)

Offline

Board footer

Powered by FluxBB

About this website · Donate · Contact Piwigo project © 2002-2013