Page 1 of 1

convert and fill

Posted: 2006-08-28T13:22:57-07:00
by embaan
Hi,

I don't know if it's a bug but I've the next problem:

I want fill an empty image (28x28 pixels) with i.e. the color red.
In the commandline (Windows) I use the next command:

convert -fill "#FF7F7F" Empty.jpg Filled.tif

I've tried also the next commands:

convert -fill red Empty.jpg Filled.tif
convert -fill rgb(255,127,127) Empty.jpg Filled.tif

but nothing has any effect, the Filled.tif image is still white or empty.

What am I doing wrong?

Posted: 2006-08-28T14:10:15-07:00
by magick
Try this command to change all the pixels in an image to redish:
  • convert Empty.jpg -fill "#FF7F7F" -draw 'color 0,0 reset' Filled.tif

Posted: 2006-08-28T22:54:19-07:00
by anthony
When no transparency is present (guranteed with JPEG images) you can also use

Code: Select all

-fill color  -colorise 100%
For many more methods see
IM Examples, Canavs generation (from existing images)
http://www.cit.gu.edu.au/~anthony/graph ... vas/#sized

Convert fill

Posted: 2006-08-29T15:20:05-07:00
by embaan
Thanks, it works OK now.