If you need to output the picture directly in the browser
You need to add header("Content-type:image/png") before the imagepng function;
If you call it in the img tag, you don't need to add header("Content-type:image/png");
If you need to output the picture directly in the browser
You need to add header("Content-type:image/png") before the imagepng function;
If you call it in the img tag, you don't need to add header("Content-type:image/png");