Skip to main content

Convert executables (or any other file) into an image

Project description

exe2png

Convert executables (or any other file) into an image

Installation

From PyPI

pip3 install exe2png

From GitHub

pip3 install git+https://github.com/donno2048/exe2png

Usage

exe2png -h
usage: exe2png [-h] (-e | -d) [-c] [-H HEIGHT] -f FILE [-o OUTPUT]

Encode or decode a file to or from a PNG image.

optional arguments:
  -h, --help            show this help message and exit
  -e, --encode          encode a file to a PNG image
  -d, --decode          decode a PNG image to a file
  -c, --color           encode or decode a color image
  -H HEIGHT, --height HEIGHT
                        height of the image
  -f FILE, --file FILE  the file to encode or decode
  -o OUTPUT, --output OUTPUT
                        the file to output to

For example, we can encode my snake executable to a greyscale PNG image:

wget https://github.com/donno2048/snake/releases/download/v16/snake.com
exe2png -e -H 15 -f snake.com -o snakeL.png

and get this:

greyscale image

and we can decode the image back to a file:

exe2png -d -f snakeL.png -o snake.com

or we can encode a color image:

exe2png -e -c -H 9 -f snake.com -o snakeRGB.png

and get this:

color image

and we can decode the image back to a file:

exe2png -d -c -f snakeRGB.png -o snake.com

Here is python itself encoded into a PNG image:

python image

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

exe2png-1.0.1.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

exe2png-1.0.1-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page