--- 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

Reply via email to