[LINUX] Diff a binary file (image file, etc.)

Although it is diff to take the difference of the text file To check if there is a difference in binary files such as image files It seems that you should use cmp.

cmp a.jpg  b.jpg 
a.jpg b.jpg is different:Byte 23, line 1

Recommended Posts

Diff a binary file (image file, etc.)
Create a binary file in Python
I tried running python etc. from a bat file
Output a binary dump in binary and revert to a binary file
[Caution] When creating a binary image (1bit / pixel), be aware of the file format!
[python] Change the image file name to a serial number
A Python script that saves a clipboard (GTK) image to a file.
Upload a file to Dropbox
Read and write a file
Create a dummy data file
Write and read a file
Export a gzip-compressed text file
The image is a slug