On Wed, 31 May 2006 10:39:57 +1000, Anthony Thyssen wrote:
HI Anthony
> Define the fill color and you should get the same results.
Yep, that fixed it. Thanx. I found 4 ways to do it from the command line.
To summarize:
- white.png is just white, same size as input file, which is 1024x768
- Use -matte if you need to discard the matte channel
- composite -dissolve 5x100 in.png white.png [-matte] out.png
- composite -blend 5x90 in.png white.png out.png
- composite -blend 5x90 in.png xc:white -resize 1024x768 out.png
I resize the white pixel (xc:white) to the input size, so -resize must follow xc
- convert in.png -fill white -colorize 95% out.png
- Perl:
use Image::Magick;
my($image) = Image::Magick -> new();
my($result) = $image -> Read('in.png');
die $result if $result;
$result = $image -> Set(fill => 'white');
die $result if $result;
$result = $image -> Colorize(opacity => '95%'); # Or 95/95/95.
die $result if $result;
$result = $image -> Write('out.png');
die $result if $result;
--
Ron Savage
[EMAIL PROTECTED]
http://savage.net.au/index.html
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users