in reply to Pure Perl - Crop and Resize Jpeg Files
Good luck...use GD; $image = GD::Image->new("myimage.jpg"); ($width,$height) = $image->getBounds() $newimage = new GD::Image(100,100); $newimage = copyResized($image,0,0, 0,0,100,100,$width,$height); open(IMG, "new.jpg") or die "Can't open output: $!"; binmode IMG; print IMG $newimage->jpeg; close IMG;
Steve
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pure Perl - Crop and Resize Jpeg Files
by Bod (Parson) on May 16, 2021 at 17:42 UTC | |
by Your Mother (Archbishop) on May 16, 2021 at 18:32 UTC |