Skip to content

Aniruddha-Deb/hackerfx-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HackerFX v2

If you've seen HackerFX, this is a rewrite in python with a bunch of new features:

  • Support for multicoloured images
  • Square output characters (no more resizing images before passing them in)
  • Hex character support
  • Serialize a file and write the bitstream to the image
  • Support for videos(requires ffmpeg and ffprobe)

Some examples:

monochrome looks pretty good

multicoloured multicoloured output

different colour and hex output

video file and hex output

Installation:

  1. (Optional) Create a virtual environment using venv or virtualenv.
  2. Run pip install -r requirements.txt.
  3. Invoke the script with appropriate arguments as per usage given below.

Usage for images:

usage: hackerfx.py [-h] [-x] [-v] [-c COLOR] [-o OUTPUT] [-d DATA] input_image

Binarizes images in the hacker format

positional arguments:
  input_image           Path to input image

optional arguments:
  -h, --help            show this help message and exit
  -x, --hex             Encode Image in Hex
  -v, --video           Encode video
  -c COLOR, --color COLOR
                        RGB Hex Output Image color (default: Hacker Green - 0x39FF14)
  -o OUTPUT, --output OUTPUT
                        Output file name
  -d DATA, --data DATA  Data file to encode into image

NOTE: videos need ffmpeg and ffprobe.

About

Binarize (or hexify) an image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages