pngencoder

In this example I encode a secret image to images/thorsecret.png And then decode it to to reveal.jpeg

python3 pngdataencoder.py --encode images/thor.png --input-file secret.jpeg --output-path images/thorsecret.png
python3 pngdataencoder.py --decode images/thorsecret.png --output-path reveal.jpeg

You can also encode decode from url, just pass --from-url and pass the url to the image argument.

python3 pngdataencoder.py --decode --from-url --output-path outhhehe.jpeg https://raw.githubusercontent.com/dhilst/pngencoder/master/images/thorsecret.png

#images #data-science

Simple encode decode data to PNG files
1.30 GEEK