uploading pictures in portrait mode, & md5 problems
barsanuphe
Registered Users Posts: 4 Beginner grinner
I wrote a script to sync pictures with my smugmug account, in which I compare the md5 of local files with the md5 of the files online to see if I need to update them.
It works well for pictures in landscape orientation. However, when I do this with a picture in portrait orientation, Smugmug gives me a different md5 (using images.getInfo) than the one I get locally using good old md5sum. That makes my script think my local copy is ahead and the online obsolete, and it uploads it again.
Is Smugmug doing something to the files behind the scenes? Maybe something to do with some Canon EXIF parts it doesn't like? This happens with jpgs out of the camera for 2 different cameras at least (Canon SLRs, a 7D and a 5d3).
However, if I open my out-of-camera jpg and save it with Gimp for example, then the modified portrait picture, once uploaded to Smugmug, has the same md5 online and locally.
So what is the explanation? Is there a workaround different than opening and saving with GIMP every picture taken in portrait mode? Did anyone ever see this?
It works well for pictures in landscape orientation. However, when I do this with a picture in portrait orientation, Smugmug gives me a different md5 (using images.getInfo) than the one I get locally using good old md5sum. That makes my script think my local copy is ahead and the online obsolete, and it uploads it again.
Is Smugmug doing something to the files behind the scenes? Maybe something to do with some Canon EXIF parts it doesn't like? This happens with jpgs out of the camera for 2 different cameras at least (Canon SLRs, a 7D and a 5d3).
However, if I open my out-of-camera jpg and save it with Gimp for example, then the modified portrait picture, once uploaded to Smugmug, has the same md5 online and locally.
So what is the explanation? Is there a workaround different than opening and saving with GIMP every picture taken in portrait mode? Did anyone ever see this?
0
Comments
It is beyond me why smugmug can't deal with the orientation exif tag though.
I wonder if SmugMug uses a lossless jpeg rotation algorithm, or uncompresses & recompresses.
Want faster uploading? Vote for FTP!