Image-Resize
view release on metacpan or search on metacpan
Revision history for Perl extension Image::Resize.
0.05 Friday, November 04, 2005
- Minor changes in test script
0.04 Saturday, October 29, 2005
- REMOVED: type() method is obsolete
- FIX: scaling routine is not compatible with Image::Magick::Scale()
- NEW: new() can now accept GD::Image object
0.03 Friday, August 19, 2005
- NEW: Image extension is no longer required
- NEW: type() method is introduced to retrieve suggested extension for image
- NEW: 24-bit-palette is used by default, which helps achieve photo-quality results.
0.02 Thursday, June 30, 2005
- width() and height() methods do not rely on these method names of GD anymore,
instead, they use getBounds() method directly, for compatibility with older versions
use Image::Resize;
$image = Image::Resize->new('large.jpg');
$gd = $image->resize(250, 250);
=head1 ABSTRACT
Resizes images using GD graphics library
=head1 DESCRIPTION
Despite its heavy weight, I've always used L<Image::Magick|Image::Magick> for creating image thumbnails. I know it can be done using lighter-weight L<GD|GD>, I just never liked its syntax. Really, who wants to remember the lengthy arguments list of c...
$image->copyResampled($sourceImage,$dstX,$dstY,
$srcX,$srcY,$destW,$destH,$srcW,$srcH);
when L<Image::Magick|Image::Magick> lets me say:
$image->Scale(-geometry=>'250x250');
Image::Resize is one of my attempts to make image resizing easier, more intuitive using L<GD|GD>.
=head1 METHODS
=over 4
=item new('path/to/image.jpeg')
$gd = $image->resize(120, 120);
printf("Width: %s, Height: %s\n", $gd->width, $height);
=back
=head1 CREDITS
Thanks to Paul Allen <paul.l.allen AT comcast.net> for the C<trueColor(1)> tip. Now Image::Resize should work fine for photographs too.
Thanks to Nicholas Venturella <nick2588 AT gmail.com> for allowing Image::Resize to work with already-opened L<GD::Image|GD> objects and for checking the scaling routine. It's now comparable to L<Image::Magick|Image::Magick>'s C<Scale()>: the resulti...
=head1 SEE ALSO
L<GD>, L<Image::Magick>
=head1 AUTHOR
Sherzod B. Ruzmetov, E<lt>sherzodr@cpan.orgE<gt>
http://author.handalak.com/
=head1 COPYRIGHT AND LICENSE
Copyright 2005 by Sherzod B. Ruzmetov
( run in 1.584 second using v1.01-cache-2.11-cpan-beeb90c9504 )