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

This package is auto-updated.

Last update: 2024-11-21 23:36:56 UTC


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.