项目作者: JellyBellyDev

项目描述 :
PHP library to fix image orientation by exif data.
高级语言: PHP
项目地址: git://github.com/JellyBellyDev/ImageOrientationFix.git
创建时间: 2014-02-07T07:06:12Z
项目社区:https://github.com/JellyBellyDev/ImageOrientationFix

开源协议:MIT License

下载


ImageOrientationFix

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

  1. composer require jellybellydev/image-orientation-fix

How to use

  1. use ImageOrientationFix\ImageOrientationFixer;
  2. $iof = new ImageOrientationFixer('foo.jpg');
  3. $iof->fix();

or

  1. use ImageOrientationFix\ImageOrientationFixer;
  2. $iof = new ImageOrientationFixer('/path/foo.jpg', '/path/foo_fixed.jpg');
  3. $iof->fix();

Contributing

Dependencies are managed through composer:

  1. $ docker-compose up --build -d
  2. $ docker-compose run php74 composer install

Run phpunit:

  1. $ docker-compose run php74 composer test

Run php-cs-fixer

  1. docker-compose run php74 composer cs-fixer

Changelog

Please refer to the changelog notes.

Credits

Thanks to recurser for the image example