Blog Archives

Orientation of the Image in PHP Application

Sometime you will get strange that you have uploaded the image on your website and the orientation of image gets changed.

Did you notice, it is the issue with the image you are uploading and is due to the Exif Data, So during uploading the image you need to change the orientation of image on server side.

First of all we should know what is Exif Data?

Exif Data:
Most people know that when you take a picture with digital camera it writes the image to a file, but quite a few people do not know that there’s usually a lot more data being written to this image file. The extra data being written is Meta data (data about data), and it may contain lots of data about the camera and surroundings when the picture was taken. This data is usually written in Exif headers.

Read the rest of this entry