I am trying to write permanent text on an image, I've found a GD way to overlay text, but it doesn't actually write the text to the actual photo file, which is what I am hoping to be able to do... is this possible?
The final result is an image, so I don't see why you cannot save the image to replace the original.
I did that here, so it's definitely possible. 🙂
If you are using imagejpeg() (or similar) to output the image, to instead write the result to a file, add the optional 2nd parameter to that function specifying the desired file path-name.
As NogDog points out, functions like [man]imagejpeg[/man] and [man]imagepng[/man] let you specify a filename so that the image that is created can be written to a file instead of output to the browser so creating a new file is easy enough. the tricky part with this is that you will be getting into file management. Do you need to keep the original file without the text? Are you going to use a different filename? Where do we save these images? Do we use a naming convention or will we create some kind of database structure to keep track of these images?