jellybellydev/image-orientation-fix

PHP library to fix image orientation by exif data.

v3.2.1 2024-01-05 13:02 UTC

This package is auto-updated.

Last update: 2024-10-08 07:53:14 UTC


README

PHP library to fix image orientation by exif data with thanks to method exif_read_data

Gitbub actions Latest Stable Version PHP Version Require Total Downloads composer.lock License codecov

Image Example

after

How to install

composer require jellybellydev/image-orientation-fix

How to use

use ImageOrientationFix\ImageOrientationFixer;

$iof = new ImageOrientationFixer('foo.jpg');
$iof->fix();

or

use ImageOrientationFix\ImageOrientationFixer;

$iof = new ImageOrientationFixer('/path/foo.jpg', '/path/foo_fixed.jpg');
$iof->fix();

Contributing

Dependencies are managed through composer:

$ docker-compose up --build -d
$ docker-compose run php74 composer install

Run phpunit:

$ docker-compose run php74 composer test

Run php-cs-fixer

docker-compose run php74 composer cs-fixer

Changelog

Please refer to the changelog notes.

Credits

Thanks to recurser for the image example