Skip to main content

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

Metadata

Release files for exe2png 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for exe2png 1.0.1
File Size Uploaded
exe2png-1.0.1.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for exe2png 1.0.1
File Interpreter ABI Platform
exe2png-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 kB

Release files / exe2png-1.0.1.tar.gz

Download URL exe2png-1.0.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
06a54258141c84ddfd36b36c305c1f28a3ed4f9ba88d455610b4cf58a63d8e73
BLAKE2b-256 checksum
How to use checksums
848e23955a9856dc4ceca7d5bbd6be0245ddcc299cefe62d6b0e2097a980edc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / exe2png-1.0.1-py3-none-any.whl

Download URL exe2png-1.0.1-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
288083a8447dc39da0af6da599d2f7a1be7af1d79d68a4fac98d05b991bca782
BLAKE2b-256 checksum
How to use checksums
c9d07083e7ab9895aa881c3cc97e082797f74705c4a3b062fac604a40a27dd3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page