Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resizing Images

Status
Not open for further replies.

kennygadams

Programmer
Joined
Jan 2, 2005
Messages
94
Location
US
Hello Everyone,

I would normally use system calls to create thumbnail images from the originals, but my new server with yahoo does not support them because of security reasons.

This server does support ImageMagick but I cant seem to get IM to create a thumbnail sized image. Can any of you see any obvious problems with the code below? or suggest a better way of doing this?

Code:
#!/usr/bin/perl

require ('cgi-lib.pl'); 
&ReadParse;

use CGI::Carp qw(fatalsToBrowser warningsToBrowser);
use Image::Magick;

$full_path_to_the_ORIGINAL_image=Image::Magick->new;
$base_path_to_THUMBNAIL_image = $full_path_to_the_ORIGINAL_image->Crop('100x100+0+0');

Thanks,


Kenny Adams
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top