Toolkits can be helpful.
66b731b597329bb8dc5ba412784d54e4fd5f69fa8f221c78d6d686405cf464b1
In that case, the image was told to conform to a given file hash that lines up with a wikileaks drop using ghidra.
Somewhat related:
https://www.pyimagesearch.com/2017/11/27/image-hashing-opencv-python/#attachment_6651