#29 Creating a Thumbnail
It's not nice to put full-size images on a web page. A small gallery of 15 pictures can take up to 40MB of space (and that's using a low-resolution camera). So most people use thumbnails that you can click to get the full picture. Almost all image manipulation programs will let you scale an image interactively. But what if you want to do it for a series of snapshots? The interactive approach is long and boring. Perl lets you automate it.
The Code
Note:
The code uses the Image::Magick module. If your operating system contains the Perl module for ImageMagick (RedHat calls it perl-ImageMagick) you'll probably want to install it from the package. Because of all the support libraries required, you might not want to download ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access