Web programming: why photos might be rotated (when you don’t want it) and what you might do to fix it

Self-tutoring about programming: the tutor mentions undesirable photo rotations.

What if, when you place an image in a document, it ends up on its side? It might even appear right-side-up when you view it in the folder, but not in the document. Why?

It’s my understanding that there are device-specific instructions about image orientation that can be corrupted or just wrong. What’s interesting is that these instructions, it seems, may not take effect on the device that took the photo, or even when the photo is displayed in a folder, but only when the photo is placed in a document. Therefore, the copy ends up with a different orientation from its parent.

Sometimes, if one changes the orientation instructions programmatically, that still won’t fix the way the photo is displayed. What seems to work is opening up the photo in an image editing program, rotating it how it should be oriented (if necessary), then saving it that way. I use Paint, which seems to reset the orientation to what it should be when the image is saved as desired. Once the system sees both the way the image should present and its digital orientation simultaneously, things seem to be okay – thank God.

In my experience, a photo viewing program, though it might allow you to rotate the photo how you want and even save it that way, won’t necessarily accomplish a persistent change. That’s why an image editing program is needed.

Source:

sirv.com

Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.

Leave a Reply