Javascript required
Skip to content Skip to sidebar Skip to footer

When I Upload Pictures to Scratch They Turn Horizontal

Ever wonder why some photos await correct in some programs, but appear sideways or upside downwardly in others? That's considering there are ii different ways a photograph can be rotated, and not every plan is on the aforementioned page.

The Two Ways an Image Can Be Rotated

Traditionally, computers have e'er rotated images past moving the bodily pixels in the prototype. Digital cameras didn't bother rotating images automatically. And then, fifty-fifty if you used a camera and held it vertically to take a photograph in portrait fashion, that photo would be saved sideways, in landscape way. You could then use an image editor program to rotate the image to appear in its correct portrait orientation. The epitome editor would movement the pixels to rotate the image, modifying the actual image information.

This just worked, everywhere. The rotated image would announced the same in every program…as long as y'all took the time to manually rotate them all.

Manufacturers wanted to solve this annoyance, and so they added rotation sensors to modern digital cameras and smartphones. The sensor detects which way you're holding the camera, in an effort to rotate the photos properly. If yous take an image in portrait way, the photographic camera knows and can act accordingly so you don't accept to rotate it yourself.

RELATED: What Is EXIF Information, and How Can I Remove Information technology From My Photos?

Unfortunately, there's a small caveat. Digital photographic camera hardware just couldn't handle saving the image directly in rotated form. So rather than performing the computationally intensive task of rotating the entire epitome, the camera would add a modest piece of data to the file, noting which orientation the image should be in. Information technology adds this data to the Exif data that all photos have (which includes the model of camera you took information technology with, the orientation, and mayhap fifty-fifty the GPS location where the photo was taken).

In theory, then, you could open that photo with an awarding, information technology would await at the Exif tags, then present the photo in the correct rotation to you. The epitome data is saved in its original, unrotated form, but the Exif tag allows applications to correct it.

Not Every Program Is On the Aforementioned Page

Unfortunately, non every slice of software obeys this Exif tag. Some programs–specially older paradigm programs–will just load the image and ignore the Exif Orientation tag, displaying the image in its original, unrotated land. Newer programs that obey Exif tags will show the image with its right rotation, and so an image may appear to accept different rotations in different applications.

Rotating the epitome doesn't exactly assist, either. Modify it in an old application that doesn't understand the Orientation tag and the application volition motility the actual pixels around in the epitome, giving information technology a new rotation. It'll wait correct in older applications. Open up that image in a new awarding that obeys the Orientation tag and the application volition obey the Orientation tag and flip the already rotated paradigm around, then information technology'll await incorrect in those new applications.

Fifty-fifty in a new application that understands the Orientation tags, it's oftentimes not quite clear whether rotating an epitome will motion the actual pixels in the image or simply modify the Exif tags. Some applications offer an choice that volition ignore the Exif Orientation tag, allowing you to rotate them without the tags getting in the way.

This problem can occur in practically whatever software, from a plan on your PC to a website or a mobile app. Photos may announced correctly on your computer only appear in the wrong rotation when you upload them to a website. Photos may appear correctly on your phone just incorrectly when you transfer them to your PC.

For example, on Windows seven, Windows Photo Viewer and Windows Explorer ignore the Exif Orientation tag. Windows 8 added support for the Exif Orientation tag, which continued into Windows 10. Images may appear right on a Windows 10 or eight PC, but rotated differently on a Windows 7 PC.

New Software Almost E'er Obeys Exif Orientation Tags

Thankfully, near applications now do obey the Exif Orientation tag. If yous're using Windows 10, File Explorer and the default image viewer will properly obey the Exif Orientation tag, so photos that come from your smartphone or digital photographic camera will exist display properly. Google's Android and Apple'due south iOS both natively create photos with the Exif Orientation tag and support it.

If you're using Windows vii, yous can make this trouble go away by upgrading to Windows x. If y'all'd like to go on using Windows vii, you may desire to use some other image viewer that obeys the Exif tags instead of the default image viewer.

The average website or desktop application should also obey Exif Orientation, although not all of them do. If a photo appears sideways when uploaded to a website, that website needs to be fixed–but you can probably rotate that image on that website anyway. Desktop tools for working with photos should also back up Exif Orientation tags. If an application yous use doesn't, yous may want to detect a more modern application.

How to Prepare Paradigm Rotation for Older Programs

If this is a problem for you lot–especially on Windows vii–you can also use JPEG Autorotate, which uses the jhead control in the background. This tool adds a quick right-click "Autorotate all JPEGs in folder" choice to Windows Explorer. Select information technology and the tool will examine all photos in a folder, automatically rotating them according to their Exif Orientation tags and and so removing those tags. Use this tool when you import images and Windows 7 and other applications won't have a problem with them.


Modern smartphones and digital cameras have faster hardware, so information technology should exist possible for them to save photos in an already-rotated state instead of just applying the Exif Orientation tag. Unfortunately, the industry seems to have settled in Exif Orientation tags as the standard solution, even if they aren't ideal.

Thanks to Tom Moriarty for contacting usa and giving us the idea for this article.

wakefieldbehise.blogspot.com

Source: https://www.howtogeek.com/254830/why-your-photos-dont-always-appear-correctly-rotated/