About PHP using GD library image output problem

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");

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325022957&siteId=291194637