#! /bin/zsh # # this file: # https://dataswamp.org/~incal/conf/.zsh/ascii2png txt2png () { local ascii=$1 local png=${ascii:r}.png convert \ -size 1024x1024 xc:black \ -font "FreeMono" \ -pointsize 18 \ -fill "#00ff00" \ -annotate +15+15 "@${ascii}" \ -trim \ -bordercolor black \ -border 10 \ +repage \ $png }