PHPackages                             reptily/php-image-diff - 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. reptily/php-image-diff

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

reptily/php-image-diff
======================

Compares the image

1.0.0(4y ago)3533↑66.7%1MITPHPPHP &gt;=7.4

Since Oct 12Pushed 4y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Install
=======

[](#install)

```
composer require reptily/php-image-diff
```

Example
-------

[](#example)

1. A simple example for determining the difference between two images.

First image
[![](https://camo.githubusercontent.com/9084fca149b95ad050a7246346d5c8222914c644ad56f6dcfac169fe46e7a3bd/68747470733a2f2f73756e392d32322e757365726170692e636f6d2f696d70672f496f436c364e465f4449646f674e6d754e53624942656239323334656777683737726f595f772f6a6b2d752d7478584b476f2e6a70673f73697a653d31303078313030267175616c6974793d3936267369676e3d623164353461633739383533343035643730346430626533363631313461343526747970653d616c62756d)](https://camo.githubusercontent.com/9084fca149b95ad050a7246346d5c8222914c644ad56f6dcfac169fe46e7a3bd/68747470733a2f2f73756e392d32322e757365726170692e636f6d2f696d70672f496f436c364e465f4449646f674e6d754e53624942656239323334656777683737726f595f772f6a6b2d752d7478584b476f2e6a70673f73697a653d31303078313030267175616c6974793d3936267369676e3d623164353461633739383533343035643730346430626533363631313461343526747970653d616c62756d)
Second image
[![](https://camo.githubusercontent.com/3475fb0a422d91a2cac37a81b63e4ac9a1c056b3294ce0032ce4f6291eec2bd9/68747470733a2f2f73756e392d36362e757365726170692e636f6d2f696d70672f6d57664b564b414d576f48477a484e63584e4f6a706b335372444975355a5f63636f665363512f6c7a5933486d68534568632e6a70673f73697a653d31303078313030267175616c6974793d3936267369676e3d323766653863306631666438336664333434366530343766636234316631336226747970653d616c62756d)](https://camo.githubusercontent.com/3475fb0a422d91a2cac37a81b63e4ac9a1c056b3294ce0032ce4f6291eec2bd9/68747470733a2f2f73756e392d36362e757365726170692e636f6d2f696d70672f6d57664b564b414d576f48477a484e63584e4f6a706b335372444975355a5f63636f665363512f6c7a5933486d68534568632e6a70673f73697a653d31303078313030267175616c6974793d3936267369676e3d323766653863306631666438336664333434366530343766636234316631336226747970653d616c62756d)

```
