I’m having some problems trying to figure this one out.
I’d like to create .png’s based on data I’ve pulled off a webpage.
I currently have it setup to where it adds the text to the png, but it doesn’t create and upload a new png, its my same base.png just with text positioned over it. I’d like to get it to render that out, or find a different method for the same thing. I’m using GD Library, but am not very familiar with it.
That is the code, basically C+P'd off another website, but its not exactly what I'm looking for. It creates the png by just overlapping text and variables on it, but I'd like for it to render out the actual image and upload it to my server. This would make custom .png's for every entry.
If you’re going to send a header() call, it must be done before ANY output is sent to the browser.
images should not be included. If you’re using php to generate the image, just use the php file as the SRC of the image tag.
<img src=‘picture.php’> is completely valid as long as picture.php returns data consistent with an image format (has the right header and such.)