in reply to Re^2: GD colorAllocate not changing colour
in thread GD colorAllocate not changing colour
The problem may be here
$image->copy($resize, 0, 0, 0, ($newh - 450) / 2, 600, 450);gd does nice cropping to viewports but this one may be too much if $newh<450
if ($newh<450) { $image->copy($resize, 0, (450-$newh ) / 2, 0,0, 600, $newh); } else { $image->copy($resize, 0, 0, 0, ($newh - 450) / 2, 600, 450); ]
Trying to copy from outside the bounds of the src image may have introduced the black, just a guess
In Section
Seekers of Perl Wisdom