open IN, "../../test3.jpg" or die "Could not open."; my $srcimage = GD::Image->newFromJpeg(*IN);