This is a portable version of: https://github.com/miyasiii/libraryofbabel.info-algo
Build
docker build -t babel .
Run
docker run --rm -v $(pwd):/work -it babel /b/COMMAND
Commands are:
/b/search(reads$PWD/test.jpg... outputs$PWD/pointer.txt)/b/invert(reads$PWD/pointer.txt... output$PWD/outimage.jpg)
Start with any old JPG. This demo program only accepts JPGs of exactly 640x416, so you'll probably need to convert yours.
If you have ImageMagick installed just do
convert MY_ORIG_IMAGE.jpg -resize '640x416!' test.jpg
Then run /b/search to get the pointer for this image. Then run /b/invert to get a version of the image back.