Or you can make it even easier(cause the output is only a text) and simply print out the difference in metadata directly. You might need some other tools like ImageMagick but at least no shenanigans with viewing binary data as part of your diff.
[1]https://stackoverflow.com/questions/5132749/diff-an-image-us...
You can use it to create delta images for git diff but also to interactively compare changes via git difftool.