PHPackages                             inceddy/image-compare - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. inceddy/image-compare

ActiveLibrary[Image &amp; Media](/categories/media)

inceddy/image-compare
=====================

micro Lib for image comparison

1.0.0(8y ago)394.9k↓29.2%7[1 issues](https://github.com/inceddy/ImageCompare/issues)1MITPHP

Since Jan 31Pushed 7y ago2 watchersCompare

[ Source](https://github.com/inceddy/ImageCompare)[ Packagist](https://packagist.org/packages/inceddy/image-compare)[ RSS](/packages/inceddy-image-compare/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (1)

ImageCompare
============

[](#imagecompare)

PHP micro Lib for image comparison

Installation
------------

[](#installation)

Add this repo as dependency in your composer.json

```
{
    "require": {
        "inceddy/image-compare": "dev-master"
    }
}
```

Concept
-------

[](#concept)

The idea behind this comparison is simple.

1. Eliminate the background to white
2. Isolate the remaining areas
3. Compare the mean-color of all areas and the area count in both images

Sample
------

[](#sample)

```
// Load first image
$image1 = Image::fromFile('demo_inputs/image1.png');

// Load second image to compare
$image2 = Image::fromFile('demo_inputs/image2.png');

// If both images have an known background substract it
$mask = Image::fromFile('demo_inputs/mask.png');
$image1 = $image1->subtract($mask, 15); // use 15% tolerance
$image2 = $image2->subtract($mask, 15); // use 15% tolerance

// Compare both images
$equal = $image1->compare($image2); // Returns a boolean value whether these images are equal or not

// Or if you are interessted in how equal they are
$diff = $image1->difference($image2); // Retuns a float between 1 and 0, where 1 is equal and 0 is total difference
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 85% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3029d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/60855572496c9ef88a095c897f8cde25b4fdab684fafab0aaba58c50cfa1aaee?d=identicon)[inceddy](/maintainers/inceddy)

---

Top Contributors

[![inceddy](https://avatars.githubusercontent.com/u/11957976?v=4)](https://github.com/inceddy "inceddy (17 commits)")[![stripthis](https://avatars.githubusercontent.com/u/77410?v=4)](https://github.com/stripthis "stripthis (1 commits)")[![thedava](https://avatars.githubusercontent.com/u/7238710?v=4)](https://github.com/thedava "thedava (1 commits)")[![Wruczek](https://avatars.githubusercontent.com/u/7156344?v=4)](https://github.com/Wruczek "Wruczek (1 commits)")

### Embed Badge

![Health badge](/badges/inceddy-image-compare/health.svg)

```
[![Health](https://phpackages.com/badges/inceddy-image-compare/health.svg)](https://phpackages.com/packages/inceddy-image-compare)
```

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
