https://github.com/kemokemo/imgdiff
This tool compares old and new versions of image files and generates color-coded image in a diff format.
https://github.com/kemokemo/imgdiff
cli go golang image-diff
Last synced: 10 months ago
JSON representation
This tool compares old and new versions of image files and generates color-coded image in a diff format.
- Host: GitHub
- URL: https://github.com/kemokemo/imgdiff
- Owner: kemokemo
- License: mit
- Created: 2020-06-22T14:10:22.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-02-12T11:34:18.000Z (almost 3 years ago)
- Last Synced: 2025-03-22T13:23:20.511Z (10 months ago)
- Topics: cli, go, golang, image-diff
- Language: Go
- Homepage:
- Size: 283 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# imgdiff
[](https://opensource.org/licenses/MIT) [](https://github.com/kemokemo/imgdiff/actions/workflows/test-and-build.yml)
This tool compares old and new versions of image files and generates color-coded image in a diff format.

This is based on the [diff-image](https://github.com/murooka/go-diff-image/blob/master/cmd/diff-image/main.go).
Thanks to the wonderful [@murooka](https://github.com/murooka)'s [go-diff-image](https://github.com/murooka/go-diff-image).
## Install
### Homebrew
```sh
brew install kemokemo/tap/imgdiff
```
### Scoop
First, add my scoop-bucket.
```sh
scoop bucket add kemokemo-bucket https://github.com/kemokemo/scoop-bucket.git
```
Next, install this app by running the following.
```sh
scoop install imgdiff
```
### Binary
Get the latest version from [the release page](https://github.com/kemokemo/imgdiff/releases/latest), and download the archive file for your operating system/architecture. Unpack the archive, and put the binary somewhere in your `$PATH`.
## Usage
```sh
$ imgdiff -h
Usage: imgdiff [...]
-h display help
-o string
output filename (default "diff.png")
-v display version
```
This tool supports the following image formats.
- png
- jpeg
- gif
- bmp
### Example
```sh
$ imgdiff -o=diff/screen.png v1/screen.png v2/screen.png
```
## License
[MIT](https://github.com/kemokemo/imgdiff/blob/main/LICENSE)
## Author
[kemokemo](https://github.com/kemokemo)