This python script allows you to visualize any file as an image. On top of that, the file size and its hashes (MD5/SHA1) will be added to the image.
Make sure you have python 3 and the required python libraries matplotlib
and numpy
installed.
pip3 -r requirements.txt
Simply run the python script and point it to a file of your choice.
python3 visualize-binary-file-as-image.py /path/to/your/file
Once finished, you will see a new PNG file with the basename of the input file in the folder of the python script.