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. 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? 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.
Has anyone run into this and what is the explanation? Is there a workaround different than opening and saving with GIMP every picture taken in portrait mode?