Git Product home page Git Product logo

bin2img's Introduction

Binary To Image

Transform any binary file to a PNG image file.

Prerequisites

Python 3.6 or higher is needed.

Additionally, the library "Pillow" is needed. To install it, type:

$ pip3 install -r requirments.txt

Usage

$ bin2img.py <file or directory>

or

$ bin2img.py <input file or directory> <output file or directory>

If only a file is given, an image file named <file name>.png will be generated in the same directory as the file.

If the only argument is a directory, all the files in this directory will be transformed in a directory named <directory name>_images alongside the given input directory.

Behavior with two arguments is similar but with user determined output path.

Examples

Putty

Putty image

Sysinternals Process Explorer

ProcExp image

Notes

miku implemented a similar tool "binpic" inspired by this tool and implemented in the Go language

Copyright and License

This tool is made by Christian Dreier. If you find a copy somewhere, you find the original at GitHub.

You can use and copy this tool under the conditions of the MIT license.

bin2img's People

Contributors

c3er avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.