Bug? JPEG reading ignores EXIF Orientation
A lot of mobile phone cameras use the EXIF metadata of JPEG to indicate the orientation of the image (i.e., vertical vs horizontal, upside down, etc.). In Pharo 3 (I doubt it has changed in Pharo 4), that data is ignored. So, when you convert a photo taken from a mobile device to a form, it will probably be in the wrong orientation. This is true for both JPEGReadWriter and PluginBasedJPEGReadWriter. Anybody got any knowledge about this? If not, I'll add it as a bug to FogBugz. Cheers, Jeff -- Jochen "Jeff" Rick, Ph.D. http://www.je77.com/ Skype ID: jochenrick
jrick wrote
In Pharo 3..., that [orientation] data is ignored
Ahh! That explains why my image is upside down!! ----- Cheers, Sean -- View this message in context: http://forum.world.st/Bug-JPEG-reading-ignores-EXIF-Orientation-tp4807446p48... Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
We should improve the Image support because it is dated. Le 25/2/15 04:03, J.F. Rick a écrit :
A lot of mobile phone cameras use the EXIF metadata of JPEG to indicate the orientation of the image (i.e., vertical vs horizontal, upside down, etc.). In Pharo 3 (I doubt it has changed in Pharo 4), that data is ignored. So, when you convert a photo taken from a mobile device to a form, it will probably be in the wrong orientation. This is true for both JPEGReadWriter and PluginBasedJPEGReadWriter.
Anybody got any knowledge about this? If not, I'll add it as a bug to FogBugz.
Cheers,
Jeff -- Jochen "Jeff" Rick, Ph.D. http://www.je77.com/ Skype ID: jochenrick
stepharo wrote
We should improve the Image support because it is dated.
I've always found the "replace me with aTransformMorph on resize" thing baffling, so I started re-implementing a bare-bones SimpleImageMorph. Right now it holds onto the original form unaltered, but warps it to its inner bounds, and you can also specify to fix the aspect ratio. For the simple cases that cover 99% of my usage, it works perfectly. See https://github.com/seandenigris/SimpleImageMorph for more info. ----- Cheers, Sean -- View this message in context: http://forum.world.st/Bug-JPEG-reading-ignores-EXIF-Orientation-tp4807446p48... Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
participants (3)
-
J.F. Rick -
Sean P. DeNigris -
stepharo