Hi all I'm using imagecreatetruecolor to generate a thumbnail but my host has GD 1.x and imagecreatetruecolor needs GD 2 what can I use instead of imagecreatetruecolor ???

	$tmp_img=imagecreatetruecolor($nuevoancho, $nuevoalto);
	imagecopyresized($tmp_img, $image, 0, 0, 0, 0, $nuevoancho, $nuevoalto, $ancho, $alto);
	imagedestroy($image);
	$image=$tmp_img;
	imagejpeg($image, "images/current_cam.jpg",70);
	imagedestroy($image);

    mmm I see 😛 I didn't use it before because, in pc server imagecreate looks horrible but in my homepage server looks good 😛

    Thanks 🙂

      Well, I have the same problem and now still negotiating with the hosting guy to upgrade their GD.
      Anywaty, talking about imagecreate(), i thought it wont be able to give you a true colour image? The result (let say I do automatic thumbnail generation) will be somewhat bad.

      How bout that? any ideas?

        You won't get a true color image, but you won't get a low-quality image. You can still have a JPEG at 0% compression (100% output), but it's not going to be as vivid as a true color 100% JPEG.

          Write a Reply...