Thread: Cri de coeur
View Single Post
  #5  
Old 30-12-2019, 02:52 PM
Wavytone
Registered User

Wavytone is offline
 
Join Date: Jul 2008
Location: Killara, Sydney
Posts: 4,147
Nope that isn’t the issue.

jpg images contain metadata which among things, indicates which side is “up”. There are three issues that arise, as a result:

1. Some older cameras do not correctly set this metadata when the image is taken. This was an issue with some early digital cameras 20 years ago, but most (including phones) have finally got this sorted.

2. Some software - notably older windows freeware apps and those bundled with MS Windows XP, vista and 7 - such as the paint app and photo browser - do not respect the orientation as identified in the metadata, and if you rotate the image so it looks right on your PC, they do not set the metadata accordingly either.

3. The next issue is whether IIS respects the orientation per the metadata (it does) or just blindly displays the image as-is (which is what happens if there is no metadata).

If you used a dumb app in Windows to rotate and compress the image and the app didn’t set the metadata, then upload the image to IIS, the result is likely to be wrongly oriented.

Not in particular some formats do not have metadata to define orientation - eg the old .BMP (bitmap) format.

If you used a screenshot to crop an image this has no metadata. rotate the screenshot, save and upload to IIS and it will be displayed with the wrong orientation (no rotation).


Thankfully it is one thing Apple did get right from the outset and iPad/iPhone/OSX users should get it right without having to think about it.

If you’re a Windows/Android user and it’s often wrong I’d suggest you experiment with other software to crop and rotate images to find one that does set the metadata correctly. And remember to save as JPG not BMP.
Reply With Quote