Last active
February 17, 2016 16:49
-
-
Save ehrenfeu/a44cc5a2021692f7c758 to your computer and use it in GitHub Desktop.
quick hack to render current time as an ImageJ text image
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
XRES=180 | |
YRES=32 | |
convert -size ${XRES}x${YRES} \ | |
-background white \ | |
-fill black \ | |
-pointsize $YRES label:"$(date +%X)" \ | |
-colorspace gray \ | |
-compress none \ | |
-depth 8 PGM:- | | |
tail -n +4 | | |
tr -d "\n" | | |
xargs -n $XRES > Desktop/imagej_textimage.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment