Page 1 of 1

Do like color function in Gimp

Posted: 2010-02-01T10:31:48-07:00
by Poncho
Hi,

I got some text in images and want to change the colour with overlay image set on 'COLOR' like in GIMP. This way I get exactly the right coloured text. I tried already some stuff, but I got too dark result with 'colorize'.

Like this in gimp (see image full here: http://lars.stonerocket.co.uk/images/re ... k-GIMP.png):

Image

Re: Do like color function in Gimp

Posted: 2010-02-01T16:24:21-07:00
by fmw42
try

convert -background none -pointsize 48 -font Candice -fill red -strokewidth 1 -stroke black label:"ABCDEFGHIJPLMNOPQRSTUVWXYZ" alphabet1.png

Image

then

convert alphabet1.png -colorspace gray -auto-level +level-colors black,skyblue alphabet2.png

Image

Re: Do like color function in Gimp

Posted: 2010-02-02T02:36:38-07:00
by Poncho
Thank you for the help. This seems to be good.

I changed it like this and add some python:

Code: Select all

"convert result.png -colorspace gray -auto-level +level-colors black,%s result.png" % (color)
Where color can be rgb(0,0,0) or #000000 (html).