Portrait photos not being rotated?

brashquido

Joined: 2006-09-13
Posts: 60
Posted: Mon, 2009-07-27 22:35

Gallery URL = http://domandnat.com/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.6 cgi-fcgi
Webserver = Microsoft-IIS/7.0
Database = mysql 5.0.51b-community-nt-log, lock.system=database
Toolkits = Exif, Thumbnail, Gd
Acceleration = full/1800, partial/3600
Operating system = Windows NT DOMINIC 6.0 build 6001
Default theme = carbon
gettext = enabled
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Rows in GalleryAccessMap table = 15
Rows in GalleryAccessSubscriberMap table = 2192
Rows in GalleryUser table = 6
Rows in GalleryItem table = 2183
Rows in GalleryAlbumItem table = 31
Rows in GalleryCacheMap table = 35175

I'm using the full install of Gallery Remote b45, and seem to be experiencing an issue where portrait jpeg images are not rotated once uploaded. I have tried setting the auto rotate from EXIF setting as well as rotating manually in GR before uploading, and the result is always the same. Portrait images are uploaded as landscape. I'm pretty sure it is GR doing this too, as if I upload directly using the web interface in my Gallery 2 install then all photos are rotated as per the EXIF information.

I never used to have this problem as the vast majority of the 4000 or so photos on my site have been uploaded using Gallery Remote. Does anyone have any idea what might be causing this, or how I might be able to troubleshoot further? I still have a 1000 or so photos to upload, and it is going to be a real pain if I have to upload and then manually rotate them afterwards.

 
brashquido

Joined: 2006-09-13
Posts: 60
Posted: Tue, 2009-07-28 12:06

I used the "Gallery Remote Debug.exe" to try and track this one down and noticed this in the debug window output;

This from a portrait picture;
542219|TRACE|ExifUtils |Picture C:\photos\COLOR094\DCIM\10171103\DSC01140.JPG EXIF ORIENTATION: 8

This from a landscape picture;
8364281|TRACE|ExifUtils |Picture C:\photos\COLOR094\DCIM\10171103\DSC01136.JPG EXIF ORIENTATION: 1

Does this mean anything? Is there anything else I should be looking for in the debug output?

 
brashquido

Joined: 2006-09-13
Posts: 60
Posted: Sat, 2009-08-01 08:38

Found the problem. It ended up being the EXIF module which was set to detect and correct the orientation of uploads. Once I turned this off everything started working again.