in reply to Converting PNG to JPEG

Unfortunately, I am not able to test this at the moment. But, this *should* work.
use Image::Magick; my $rc; my $img = Image::Magick->new(); $rc = $img->Read('file.png'); die "$rc\n" if $rc; $rc = $img->Write('file.jpeg'); die "$rc\n" if $rc;