Hi All,
I'm new to ZenPhoto and loving it, but experiencing problems with some images are not auto rotating correctly, while others auto rotate just fine. Manually rotating images produces some bizarre results that I can get into in a moment.
Here's the scenario:
I have two photos
IMG_5287.jpg
- This image rotates correctly.
- shot on a Canon SD630
- 1.2 MB
- EXIF Orientation = 8 (fyi: http://www.impulseadventure.com/photo/exif-orientation.html)
The behavior that I see is that the image 5287 displays perfectly (thumbnail is good, when clicking on the thumbnail the 'fullsize' images render well, and the original images displays, although not rotated).
IMG_9298.jpg
- This image does not rotate correctly.
- shot on a Canon SD790is
- 3.3 MB
- EXIF Orientation = 6 (fyi: http://www.impulseadventure.com/photo/exif-orientation.html)
This image's thumbnail does not render, rather a box with a blue question mark appears. When I click on the un-rendered thumbnail, the 'full size' image does not render and a similar blue question mark appears. However, the image does show a large "portrait shaped" box, indicating that some rotation is trying to occur. When clicking on the full image, the original image displays unrotated in the browser as expected.
When I disable the auto-rotate function from the Admin page, the thumbnail renders, however, the full size image renders oddly. The image does not simply display un-rotated, but rather, it is displayed un-rotated, but compressed into a "portrait" sized box.
If I then go into that particular image's admin page and try to rotate the image manually, the option to rotate is grayed-out.
When I turn back on the auto-rotate function, and go to the admin page for the image, the rotation is selected as 270 degrees. When I select none, for rotation, the image renders un-rotated, in landscape form (correctly), not compressed into a "portrait" sized box.
The ZenPhoto gallery that I am setting up is private, so unfortunately I can't share with the forum the actual page, but the photos in question are available here:
http://o2bayarea.org/ZenPhotoTestImages/
I have some guesses that the image (IMG_9298.jpg) is not auto-rotating correctly because:
A - it has a newer EXIF format that GD doesn't like?
B - GD doesn't like the orientation 6?
I welcome your comments, feedback and solutions.
Many thanks,
Mike
-----------
Other info:
I am currently running:
Zenphoto version 1.2.6 [4335] (Official Build)
Current gallery theme: default
PHP version: 5.2.6
Graphics support: PHP GD library bundled (2.0.34 compatible)
PHP memory limit: 96M (Note: Your server might allocate less!)
MySQL version: 5.0.67
I am hosted on Dreamhost running PHP5 FastCGI:
http://php.dreamhosters.com/php5-cgi/