in reply to Win32 converting 32bit bmp images to 24bit
ImageMagick has fairly detailed online documentation for the Perl bindings to their libraries. If you go here, you can see all available options and sample scripts to reach certain effects.
Untested, and out of the blue I could think of the following script:
Did I already say it isn't tested? :-)#!/usr/bin/perl -w use strict; use Image::Magick; my($image); $image = new Image::Magick; $image->Read('my_original.bmp'); $image->Quantize(treedepth => 24); open(IMAGE, ">my_output.bmp"); $image->Write(file=>\*IMAGE, filename=>"my_output.bmp"); close(IMAGE);
Success,
-- JaWi
"A chicken is an egg's way of producing more eggs."
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Win32 converting 32bit bmp images to 24bit
by rochlin (Acolyte) on Oct 31, 2002 at 18:39 UTC |
In Section
Seekers of Perl Wisdom