On Jun 9, 2008, at 1:32 PM, James Keeline wrote: > --- Daniel Israel <[EMAIL PROTECTED]> wrote: > >> I'm working on a project that displays images. What I need to do is >> take a JPG file, create a background, resize the JPG to fit in the >> area, and center the JPG in the background, and finally saving it >> as a >> new JPG file. >> >> Is there an easy way to do that with PHP? Or will I have to convert >> everything (from now and forever) manually by hand? >> >> Any help appreciated... thanks! >> >> -D. Israel > > I don't know what you mean about a background. However, two tools > are commonly > used to manipulate images in PHP. One is the GD library for which > there are a > large selection of functions. Use GD 2.x rather than 1.x. > > The other option is to use the Unix/Linux command line tools > collectively known > as ImageMagick. These can be run from PHP using the exec() and > similar > function calls. > > James
Think of framing the photo. The "background" might serve as a colored mat for the frame of the picture. The website has an image of the frame with mat and the picture is sized and centered, then sent to the user so that they could see what it might look like. I know the client has GD available, but I don't know anything about it or it's capabiities. Any pointers (tutorial?) would be appreciated. Thanks! -D. Israel [EMAIL PROTECTED] http://www.customcodebydan.com AIM: JudoDanIzz [Non-text portions of this message have been removed]