What I am trying to do, is that on my server, I have a number of images. I would like for a potential customer to be able to modify the text on a particular image. E.g. there are images of Engagement Card. I would like a potential bride / groom to go onto the site - select the card that they like - for them to then use a form to enter the relevant details (e.g. Their name, venue, dates etc) - and then for the computer to talk to the server and for the image to be re-generated with their details on.
I have no idea where to start for something like this so any help would be much appreciated.
Make the image without all the text, and then take the string submitted by the user and align it accordingly in each area, presumably, the same cursive font.
I only did the names at the top, but you can see by the script shown
that you duplicate the sections with different X/Y coordinates and font sizes.
You can also mix fonts and font colors if you upload the correct .ttf file(s).
No validation shown, so you need to limit textbox lengths, etc.
EDIT:
And best of all, the output is an actual JPEG image, so you can store it, serve it, resize it,
make a thumbnail, attach to email, etc. ... do anything you want with it. Just realize that
the quality will not be as good as a "real" card. Also, you can see that creating the rest of
the card will require tedious positioning. Making other cards will take a lot of time to create.
I'm wondering if simply using "sample" cards with fake names might not be the better solution.
The only silver lining to using a form (and PHP GD), is that you could save the form information
in a database ... example, the client will be giving you all the information to use on the real cards.
So maybe it would be a good thing to use. Saving all of the data is a whole other thing not yet
described, and then you would need an admin section to view the data.
You might want to hire a freelance programmer, if this is part of a business you do.
The money you spend would then be a tax write-off.
That looks exactly like something I was looking for. Now the difficult part for me - to try doing the same to some of my other images. Can you please leave that example on your site for the time being?