GD::Thumbnail 1.01
GD::Thumbnail is a thumbnail maker for GD. SYNOPSIS use GD::Thumbnail; my $thumb = GD::Thumbnail->new; my $raw = $
|
|||||||||||||||||||
GD::Thumbnail is a thumbnail maker for GD.
SYNOPSIS
use GD::Thumbnail;
my $thumb = GD::Thumbnail->new;
my $raw = $thumb->create('test.jpg', 80, 2);
my $mime = $thumb->mime;
warn sprintf "Dimension: %sx%sn", $thumb->width, $thumb->height;
open IMG, ">thumb.$mime" or die "Error: $!";
binmode IMG;
print IMG $raw;
close IMG;
or
use CGI qw(:standard);
use GD::Thumbnail;
my $thumb = GD::Thumbnail->new;
my $raw = $thumb->create('test.jpg', 80, 2);
my $mime = $thumb->mime;
binmode STDOUT;
print header(-type => "image/$mime");
print $raw;
This a thumbnail maker. Thumbnails are smaller versions of the original image/graphic/picture and are used for preview purposes, where bigger images can take a long time to load. They are also used in image galleries to preview a lot of images at a time.
This module also has the capability to add information strips about the original image. Original image's size (in bytes) and resolution & mime type can be added to the thumbnail's upper and lower parts. This feature can be useful for web software (image galleries or forums).
This is a Yet Another type of module. There are several other thumbnail modules on CPAN, but they simply don't have the features I need, so this module is written to increase the thumbnail population on CPAN.
The module can raise an exception if something goes wrong. So, you may have to use an eval block to catch them.
Requirements:
tags
Download GD::Thumbnail 1.01
Authors software
|
|
Similar software
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Other software in this category
|
|
|
|
|
|
|
|
|
|
Featured Software
jEdit 4.3 pre8
jEdit is an Open Source text editor written in Java
Opera 9.02
Surf the Internet in a safer, faster, and easier way with Opera browser
GNU Aspell 0.60.4
GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell
- Communications
- Database
- Desktop Environment
- Games
- Internet
- Multimedia
- Office
- Programming
- Science and Engineering
- System
- Text Editing&Processing
