Tag Archives: image

[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 25×25 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 done

Posted in linux, minipost | Tagged , , , | Leave a comment

[tip] Change colors using imagemagick

This will replace all black color for white color: convert input.png -fill white -opaque black output.png

Posted in linux, minipost | Tagged , , , | Leave a comment