[Gllug] Text images for web browser

tet at accucard.com tet at accucard.com
Mon Feb 4 10:21:41 UTC 2002


>echo "Accounts" | someapp --width 100 --height 30 --textcolour "#123456"
>--bgcolour "#654321" --format jpg > accounts.jpg
>
>Suggestions on how to do this as I don't fancy doing them manually with the
>Gimp?

You can script the Gimp...

Alternatively, netpbm may be of use. pbmtext will give you poor quality,
but usable results, which can then be massaged into something better.
Alternatively, you can do:

	ppmmake '#654321' 100 30 | ppmlabel -colour '#123456' -text "Accounts"

Better, but again, not quite right. It fails if the text doesn't fit in
100x30. It also doesn't centre the text, which I assume you want.

Tet

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list