sergix44 / php-fast-image-compare
Image Comparer with different aspect ratios and sizes. Can extract duplicate and unique images in directory and much more.
2.0.1
2022-02-21 17:30 UTC
Requires
- php: >=8.0
- ext-gd: *
- ext-imagick: *
- gumlet/php-image-resize: ^2.0.1
- marc1706/fast-image-size: ^1.1
- symfony/cache: ^6.0
Requires (Dev)
- phpunit/phpunit: ^9
README
PHP library for comparing images, forked and updated with dependencies to PHP8+.
Originally by https://github.com/yncki
What this library does
- compare two images
- check two images are similar or different
- find duplicate images in array or in directory,
- find unique images in array or in directory
- compare images ( with different sizes and aspect ratios too),
- compare image arrays,
- return percentage difference between images
- supports jpg, png, bmp, webp
Requirements
In order to load and compare images, the library relies on the ImageMagick extension.
Installation and Documentation
composer require sergix44/php-fast-image-compare
Original documentation:
https://php-image-comparer.axl.pl
A copy is provided in the docs/ folder.