Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: ImageMagick - why do these snippets act differently?

by tangent (Parson)
on Aug 21, 2014 at 15:42 UTC ( [id://1098241]=note: print w/replies, xml ) Need Help??


in reply to ImageMagick - why do these snippets act differently?

Try setting the depth of the new image to 8 (it defaults to 16)
$opimage->Set(magick=>'RGB', depth=>8);
You can get the depth of the original image like this:
my $depth = $ipimage->Get('depth');

Replies are listed 'Best First'.
Re^2: ImageMagick - why do these snippets act differently?
by pete_l (Novice) on Aug 22, 2014 at 17:10 UTC
    Try setting the depth of the new image to 8 (it defaults to 16)

    Thank you, that cracked it!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1098241]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-19 04:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found