Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: ImageMagick - why do these snippets act differently?

by tangent (Vicar)
on Aug 21, 2014 at 15:42 UTC ( #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
Node Status?
node history
Node Type: note [id://1098241]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2021-04-16 21:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?