Just another Perl shrine | |
PerlMonks |
Re^3: GD colorAllocate not changing colourby huck (Prior) |
on May 16, 2021 at 21:34 UTC ( [id://11132677]=note: print w/replies, xml ) | Need Help?? |
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
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
|
|