salted-herring/image-orientation-fixer

Automactially rotate the image that you upload to SilverStripe CMS, based on its orientation value stored in the exif data.

v1.0.3 2017-04-26 02:17 UTC

This package is not auto-updated.

Last update: 2021-11-27 03:35:31 UTC


README

Scrutinizer Code Quality Build Status

##Have you ever come across the moments like below:

problem story

What does this module do?

Automactially correct the image's rotation / orientation that you upload to SilverStripe CMS, based on its orientation value stored in the exif data.

Install

The module can be installed via composer:

composer require salted-herring/image-orientation-fixer

After composer has downloaded the directory, go to your SilverStripe website, and in browser's addres bar, attache "?flush=all" to the existing URL, and then hit "Enter"

Usage

Once you have done the installation, it's ready to go -- upload an image with orientation (simply, any portrait orientation photo taken by iPhone), and check if the thumbnail is resampled in the right orientation.

So, have fun coding :)