Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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;

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 pondering the Monastery: (3)
As of 2016-10-01 04:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (574 votes). Check out past polls.