Image upload rotates vertical image [duplicate]

-1

I have a script that uploads the images and creates 2 files: width 1200 and width 50.

It works normally, but when the photo is vertical (height greater than width) it rotates the image in the upload alone.

I noticed that even uploading directly through the cpanel, when it opens the image it is rotated.

If I open the image in photohop and save as a new one, that works normal

    
asked by anonymous 05.12.2018 / 14:05

1 answer

0

The camera saves information in the Orientation column as the image should be rotated for better viewing, some programs read this information and process accordingly.

Below the view of a part of this header.

SeetheOrientationfield.Inthiscaseitisnormalandthephotowillnotberotated.

Downloadthe ImageMagick program to help you change this information.

Look for more information on this here .

    
05.12.2018 / 14:43