I was looking through posts about modifying/packaging images in PHP and can’t seem to find anything. What I’m trying to do is have an image template that I can modify by $_GETting a variable.
For instance: http://foo.bar/image.php?content=Monday
If we were then to wrap the above in an tag, it would show as “You have been invited to a party on Monday!” (Something to that effect)
Basically:
- Set template
- One or two words changed on said template
- Auto-resize to fit a page
If anyone could provide a link to a library that does this, or provide a code example, that would be great.
Might want to take at this page from PHP.net -> https://www.php.net/manual/en/image.examples-png.php