Robert Kent

Personal blog of Robert Kent

PHP: Fix EXIF orientation in images

Sometimes when a user uploads an image to a website, usually a photograph, it can appear rotated. This can happen even if the image appears fine before uploading. Often this is due to the ‘orientation’ data in an image’s EXIF tag. This happens because modern cameras save metadata along with an image. This data can include: the time the picture … Read More