Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 538 Bytes

README.md

File metadata and controls

18 lines (16 loc) · 538 Bytes

binmage

The above python code helps you convert a binary file to a coloured representation. Each byte is read and converted to pixel using a colour map. Colour representaitons of files can be helpful in analyzing the binary file.

alt text

Dependencies

pip install pillow
pip install numpy

Description

import binmage
from PIL import Image
img = binmage.fileToImage(path_to_binary_file)
img.save('output_file_name.png')