Hello,
I've made a script which adds text from url onto the image.
Part of the code :
//// ^^^ blablabla
Header("Content-type: image/jpeg");
$dst_img=ImageCreate($breedte,$hoogte);
$src_img=ImageCreateFromJPEG($folder."/".$obraz);
ImageCopyResized($dst_img, $src_img, 0, 0, 0, 0, $breedte, $hoogte, ImageSX($src_img), ImageSY($src_img));
$kolor = imagecolorallocate($dst_img,166,166,166); ///color - should be gray
imagestring($dst_img, $font,5,5,"$podpis",$kolor); ///displays $podpis string from the url
But the color appears far from desired grey color. What's more and funny it happens when the image is at it's oryginal size. When i make it about 80%/80% (width/height) then it becomes gray.
Do you have any idea why it happens ?