Spaceman Diff?
jeffkaufman opened this issue · 4 comments
jeffkaufman commented
It might be nice to use https://github.com/holman/spaceman-diff if available to display image diffs
jeffkaufman commented
jeffkaufman commented
These would just display the images. If we want to actually diff them that's a lot more work.
nifr commented
https://github.com/eliukblau/pixterm might be another option :)
- written in go
- quite configurable
- provides binary releases
Thanks for icdiff
btw. awesome tool!
jeffkaufman commented
If anyone feels like adding this, I think a good way to do it would be to have icdiff check if TIV / spaceman-diff / termpix / pixterm etc is available, and if so call out to them for image diffing instead of python's difflib. We can use https://docs.python.org/3/library/imghdr.html (which goes back to python 2.5) to see if something is an image by checking its magic bytes (better than going by extensions).