Page 1 of 1
Changing a text value within a Image
Posted: Sun Aug 22, 2010 11:08 pm
by leofelix
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.
Re: Changing a text value within a Image
Posted: Mon Aug 23, 2010 1:17 am
by Gargoyle
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.
Re: Changing a text value within a Image
Posted: Mon Aug 23, 2010 4:35 am
by leofelix
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
Posted: Mon Aug 23, 2010 4:36 am
by leofelix
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