Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: 32 bit images using Pixbuf

by tonyc (Friar)
on Apr 06, 2009 at 00:20 UTC ( [id://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;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-26 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found