Dear list!
I'm trying to draw a black border around all my pictures. I get a border as the result but... The borders are all kinds of colors, different grays, white and black. It seems like random. What is going on? I want black and only black.
// Create border around image
$black = imagecolorallocate($image,0,0,0);
imageline($newimg, 0, 0, 0, $new_height, $black);
imageline($newimg, 0, 0, $new_width, 0, $black);
imageline($newimg, $new_width-1, 0, $new_width-1, $new_height-1, $black);
imageline($newimg, 0, $new_height-1, $new_width-1, $new_height-1, $black);