This has come up before, you just gotta find it -->
Image::Magick bmp jpg site:perlmonks.thepen.com
-->
Image Magick JPG
-->
Image::Magick thumb site:perlmonks.thepen.com
update: when in doubt, super search ( http://shawn.apocabilly.org/PGP/)
IIRC, imagemagick picks up the format from the filename (or you can say ->Write(format:filename))
This ought to do it
my $im = Image::Magick->new;
$im->Read('file.bmp');
$im->Scale(geometry => '30x30'); # make a thumbnail, lol
$im->Write('file.jpg');
| MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!" |
| I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README). |
| ** The third rule of perl club is a statement of fact: pod is sexy. |