I am trying to modify an image with a white cut-off in the lower right corner of an image. Technically it works fine, but the white corner comes out as a blue tint.
See code below. ANY HELP WOULD BE GREAT.
imagecopyresampled($destImage, $tempImage, 0, 0, $offsetx, $offsety, $fw, $fh, $fw, $fh);
//cut edge off and set to white
if ($cut_edge==true)
{
$red = 225;
$green = 255;
$blue = 255;
$im=imagecreatefromjpeg('/home/iplanit/public_html/eircom/images/white.jpg');
$color = imagecolorallocate( $im, $red, $green, $blue);
//echo 'in cutedge';
for ($x=0; $x<9; $x++)
{
for ($y=0;$y<9-$x;$y++)
{
imagesetpixel ( $destImage, $fw-$x, $fh-($y), $color);
imagesetpixel ( $destImage, $fw-$y, $fh-$x, $color);
}
}
}
imagejpeg($destImage, $destfile, $jpegquality);