[tip] generate transparent text images using imagemagick

To generate 100 images, containing numbers 0 to 100:

for f in `seq 0 100` ; do
	convert -size 25x25 xc:transparent -font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf \
		-fill $COLOR -pointsize 19 -draw \"text 1,20 '$f'\" res/drawable/notify_$f.png
This entry was posted in linux, minipost and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>