Do you think it is possible to frame imagine dynamically with PHP?
The function like here:
http://www.nextmonet.com/art/frameArt.jhtml?sku=wca01012
select frame button under imagine.
Thanks a lot.
I'm confused. Can you please provide a little bit more information?
I need add different frame to imagine dynamically.do you think it is possible with PHP.
thanks.
Of course it's possible... you're just going to have to be creative. You could use the GD image library (http://www.php.net/manual/en/ref.image.php) to dynamically create a "framed" image... or you could just make your script output html to put small chopped up pieces of the frame around your image.
if the frame is also a image file.Please let me know if it is possible.
I do not see which function can do this.
There isn't a magic function that will do this. You need to be creative. Using the GD image functions would probably be the best option, but definitely more complicated. An easy way to do it would be to chop the frame image up into 8 pieces (3 for the top, 2 sides, 3 for the bottom), and use a table to put the frame pieces around the image you want framed. It would be a 3 X 3 table.
I like to generate a image on the fly.you can not download the framed image if using 3x3 table.
Do you have other way to do it except GD library?
Thanks
That's exactly what the GD image library is for... to generate images on the fly. If that's what you want to do, then use it.
Do you use GD before?which function can put one imagine on other image?thanks
Yes, I have used the GD image library before. It's a pretty powerful set of functions. I have an example on my site that shows some of the stuff you can do with it. Here is the url: http://www.gagon.net/phpimg/ ... the source code can be viewed here too: http://www.gagon.net/phpimg/source.phps .
There isn't one magic function that will do everything for you. You'll need to use a few functions to get the desired result. You'll need to first create a pallet image, then read your frame image into memory, then read the image-to-be-framed into memory, then copy the images onto your new image pallet, then output the image to either a file or the browser. See the link I posted earlier for help with all of the GD image library functions.
where I can download new version GD library?Thanks.
http://www.boutell.com/gd/
I read you code and try it in my pc, do I have to copy "arbli.ttf" in current web folder?
I try to use other ttf file.I get a error like this:
"Could not find/open font "
where I put the ttf file?