Ron Savage on  wrote...
| Hi Folks
| 
|  From the command line I can do:
| C:\Temp>convert bkg.jpg -colorize 60% bkg-2.jpg
| C:\Temp>convert bkg.jpg -colorize 60/60/60 bkg-3.jpg
| 
| and the output files are identical.
| 
| However, the docs for Perl say:
| Colorize     fill=>color name, opacity=>string     colorize the image with the
| fill color
| 
| If I try this on the same image (bkg.jpg):
| $result = $image -> Colorize(opacity => '60%');
| 
| I get an image which is much pinker than from the command line.
| 
| So, the question is, what's the Perl equivalent of the command line examples
| above?
| 
Well as in none of the above cases did you actually set the fill color
to use, the fill color is undefined, and could be anything.

On the command line the default is black, but in perl it probably
really is anything, in this case a pink.

Define the fill color and you should get the same results.

For a practical examples and demostrations see...
  http://www.cit.gu.edu.au/~anthony/graphics/imagick6/color/#tinting

or using a 100% colorize to convert an image to a fixed color canvas of
the same size...
  convert test.png +matte -fill Peru -colorize 100% color_colorize.gif

You may also like to see a variation limiting the effect to mid-tones...
  http://www.cit.gu.edu.au/~anthony/graphics/imagick6/color/#tint


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
    If Dijkstra had given the five philosophers a chinese meal, he could've
    avoided his silly problem altogether by giving them chopsticks!!
                                -- Paraphrase of the Logic of Chengzeng Sun
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to