in reply to Re^2: Perl GD imagecopyin thread Perl GD imagecopy
use strict; would have caught this error, or at least forced you to declare $jpeg_quality, and then hopefully you would have thought about giving it a value too.