Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 1 day 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 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-12T11:34:18.000Z (over 1 year ago)
- Last Synced: 2024-06-20T15:03:43.578Z (5 months ago)
- Topics: cli, go, golang, image-diff
- Language: Go
- Homepage:
- Size: 283 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# imgdiff
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![test-and-build](https://github.com/kemokemo/imgdiff/actions/workflows/test-and-build.yml/badge.svg)](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.
![sample diff image](images/sample-diff-image.png)
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)