Problem with converting images from png to bmp

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
wojciech.debowski

Problem with converting images from png to bmp

Post by wojciech.debowski »

Hi,

I have a problem with converting images from png to bmp. I must convert them to bmp and next create a symbian mbm file from these bmp files. I am thinking I am loosing information from alpha channel during conversion. My piece of code responsible for conversion is as follows:
for($i=0; $i<@source_files; $i++)
{
$image = new Image::Magick;
$image->Read( $source_path.$source_files[$i] );
$image->Set(depth=>24, type=> 'TrueColor',
alpha=>'set',
compression=>'None'
);
$image->Write(filename=>$dst_path.$source_files[$i].".bmp");
undef $image;
}
My examle input image is: http://img209.imageshack.us/my.php?imag ... oneta8.png
output bmp image: http://img209.imageshack.us/my.php?imag ... bmpes5.png
and mbm file with some more bmps: http://img211.imageshack.us/my.php?image=mbmfileio9.png

My images in mbm file looks strange. Have You got any ideas how to solve this problem?

With best regards,
Wojciech
Post Reply