Created
April 3, 2019 17:12
-
-
Save gosub/975725fa1a37eb5a91541d300bc82d7c to your computer and use it in GitHub Desktop.
linux shell command to embed into a PNG image its source code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# image: image.png | |
# source code: image.js | |
# final image: final.png | |
convert image.png -set sourcecode "$(<image.js)" final.png | |
# verify with | |
identify -format '%[sourcecode]' final.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment