I have big problem with image which has higher height then width. Look there:
http://www.ledgreen.cz/test.html
I don't understand why this image is rotate can you someone explain it to me?
Thanks
Michal
I have big problem with image which has higher height then width. Look there:
http://www.ledgreen.cz/test.html
I don't understand why this image is rotate can you someone explain it to me?
Thanks
Michal
According to Wikipedia :
Exchangeable image file format (officially Exif, according to JEIDA/JEITA/CIPA specifications) is a standard that specifies the formats for images, sound, and ancillary tags used by digital cameras (including smartphones), scanners and other systems handling image and sound files recorded by digital cameras.
With different words :
Almost all digital cameras and smartphones save photos with EXIF data. Those informations like camera settings, image orientation... are recorded by the camera into the image file.
The EXIF data of the image you are using (as shown in the same link you provided: regex.info) has an orientation attribute set to 90° (Orientation : Rotate 90 CW
).
Some navigators or image editor softwares (like GIMP, Photoshop, OS X Preview, OS X Finder) respect the EXIF orientation flag, and display the image upright. But others may ignore it.
I found this linked bug in Chromium issue pages where according to thakis@chromium.org :
As of webkit r132525, this is done when viewing image files directly. That change missed today's canary by 15 revisions, but it should be intomorrow's.
Images referenced from html files in elements are not affected, intentionally for web compat -- this might be addressed through an explicit opt-in via css as suggested by noel in comment 8, but that's not done at the moment.
It doesn't look to be yet fixed to me as shown within your exemple while I did notice that some google services like Gmail will consume the EXIF metadata with attached images to output it with the expected orientation.
I think an ordered list of possible solutions to this starting from the most recommended would be :
NOTE: Several offline or online applications like Jeffrey's Exif Viewer or exifdata.com may help to parse and read EXIF metadata.