i have tried to use imagecreatefromjpeg() to create a jpg file but it does not work, no error message and no output, i don't know why, could you help me? i also try to use imagecreatefrompng to create png file, it also fails. My code are as follow🙁gd lib version is 1.6.2 or higher)
$dst_img = @ImageCreateFromJPEG("test.png");
if($dst_img){
$color = imagecolorallocate($dst_img, 0, 0, 255);
imagestring($dst_img, 5, 0, 0, "test", $color);
Imagepng($dst_img);
}
*note:test.png is ok