PHP graphics rescaling

software development

#1

I need to resize images on upload, and would usually do this via GD resampling.

However, from looking at phpinfo(), it appears that GD is not installed.

I was wondering if anyone else has had a need to do this and would recommend either pnmscale or imagemagick, or perhaps something else?

I am looking for efficient performance and highest quality.

Cheers.


#2

Use ImageMagick. Copy your file to a temp file, then do this:

/path/to/mogrify -geometry 150x150 /path/to/tempfile