A little tool which can render any file as an image. Particularly useful for reverse engineering.
Two (one, two) the same images by content, but different by compression method: jpg and png accordingly.
$ ftoi samples/img.jpg
...
$ ftoi samples/img.png
...
Will produce out.png
file for each call.
Result for jpg and png. So, despite that the content is visually the same, the actual bytes are not the same at all.
For example we can zoom into headers:
JPG:
PNG:
$ go install https://github.com/pvlbzn/ftoi