Hello Everyone,
Have a corel draw image. I need to position some text placeholders in the image and save the image in a folder. During runtime I want to replace the text placeholders with database values and print the image using PHP. Can this be done. Please give your suggestions.
Changing a text value within a Image
Moderator: General Moderators
Re: Changing a text value within a Image
if you're talking about proprietary file formats, no, not out of the box. unless there are libraries for this somewhere, it will require massive effort to get this working.
if you're talking about jpeg/gif/png images, you can specify x/y coordinates and then write text onto this image by using the gd library or imagemagick.
if you're talking about jpeg/gif/png images, you can specify x/y coordinates and then write text onto this image by using the gd library or imagemagick.
Re: Changing a text value within a Image
Thanks for your comments. I problem is how to know the xy properties from an image (say jpg). and I also have around 10 text placeholders. I need to identify the placeholders xy at runtime
Re: Changing a text value within a Image
Thanks for your comments. My problem is, how to know the xy properties from an image (say jpg). and I also have around 10 text placeholders. I need to identify the placeholders xy at runtime