note
huck
<p>The problem may be here</p>
<c>$image->copy($resize, 0, 0, 0, ($newh - 450) / 2, 600, 450);</c>
<p>gd does nice cropping to viewports but this one may be too much if $newh<450</p>
<c>
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);
]
</c>
<p>Trying to copy from outside the bounds of the src image may have introduced the black, just a guess </p>
11132636
11132655