I'm trying generate a certificate to print, but the only thing that happens is show a empty square in screen:
I'm trying show the image on the screen before i try to write on it.
header("Content-type: image/jpeg");
$imagem = imagecreatefromjpeg("assets/img/certificado.jpg");
imagejpeg($imagem);
I already check the gd2 extension and it's enable:
And I check the php error log and the page who run this code dont return any error.
When I remove the header("Content-type:image/jpeg");
and put a var_dump($i)
it shows me this: resource(12,gd)
Sorry for my english and thanks!
i tried this code a last year, i upload a flyer and add some text on fix location and save. i think you need the same.