Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: 32 bit images using Pixbuf

by tonyc (Pilgrim)
on Apr 06, 2009 at 00:20 UTC ( #755616=note: print w/ replies, xml ) Need Help??


in reply to 32 bit images using Pixbuf

The error here is complaining about 32-bit samples, so you don't need to lose 8 bits of data, but 24.

You need to use some tool that understands 32-bit sample TIFFs - eg. Imagemagick, Imager and use that to convert to 8 bit samples.

eg.

convert input.tif -depth 8 output.tiff

or

use Imager; my $im = Imager->new; $im->read(file => "input.tif") or die $im->errstr; my $im8 = $im->to_rgb8; $im8->write(file => "output.tif") or die $im->errstr;


Comment on Re: 32 bit images using Pixbuf
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (15)
As of 2014-11-24 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (142 votes), past polls