# Now make a thumbnail the size of the selected SIZE
my $thumbnail = new GD::Image($W,$H);
# Read in jpg
$image = GD::Image->newFromJpeg($IMAGE{'Pathfile'});
# GD $image->copyResized($sourceImage,$dstX,$dstY,$srcX,$srcY,$destW,$destH,$srcW,$srcH)
$thumbnail->copyResized($image, 0, 0, 0, 0, $W, $H, $IMAGE{'Width'}, $IMAGE{'Height'});
# Get the resized image as a jpg
$thumbdata = $thumbnail->jpeg();
####
Can't load 'C:\Users\nzsvz9\AppData\Local\Temp\par-6576616e63\cache-c9a4a6bfb082a4aa29b32277a1db1b29b2e1e568\4efc3f8a.xs.dll' for module GD: load_file:The specified module could not be found at /DynaLoader.pm line 193.
at /PAR/Heavy.pm line 140.
Compilation failed in require at script/myprogram.pl line 11.
BEGIN failed--compilation aborted at script/myprogram.pl line 11.
####
use GD;
####
pp -o myprogram.exe -x myprogram.pl