Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Diffing Images on the Command Line (zachholman.com)
28 points by _kcn8 on July 24, 2015 | hide | past | favorite | 7 comments


This is neat, but it doesn't seem to be actually diffing the files; it just shows both versions side-by-side. Or is it just showing a bad example?


I think the idea is that it overrides git diff for image files, so you can use the same tool for text and images.

Given the intended use case (making sure you're not uploading the wrong image), displaying side-by-side is a broadly reasonable approximation of diff for the image domain.


Ah, I see, it would be quite handy to have a text preview automatically included as part of the standard git diff output.


Neat project! Just curious about why using jp2a (spelt j2pa in the article) over other alternatives such as libcaca (img2txt) or aalib?


This is great for diff'ing Gerber files or images of them.


You might be better-served by ImageMagick's `compare` tool to do per-pixel diffs. Gerbers are something you don't want to just guess about.


Good suggestion. Thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: