[Pmwiki-users] Image Gallery

H. Fox haganfox
Fri Apr 30 17:21:35 CDT 2004


Bob Dively wrote:
> Steven Leite <steven_leite at kitimat.net> wrote:
> 
>>>>Also has anyone else tried to do anything like this?
>>>
>>>I tested a script from the internet to reduce pictures. I works fine.
>>
>>Got a link or a name?
> 
> You can look at NetPBM or ImageMagick. Both offer all sorts of image
> manipulation functionality available from a command line.

I'm a fan of Image Magick.  PHP's GD extensions have the advantage of 
not requiring any external calls, though.  I believe GD is the most 
common resampling method used in PHP scripts.

Older versions of PHP include GD version 1, which is missing some 
TrueColor functions.  Image quality can suffer as a result of that.  I 
created this page to demonstrate GD1 vs. IM[*] vs. GD2.

http://qdig.sourceforge.net/w/index.php/Main/ImageMagickVersusGD

Qdig isn't multi-user, so it doesn't suit the purpose of the original 
poster, but there may be some code in the Qdig you can use for another 
project since it's licensed under the GPL.  In particular, the 
gdVersion() function might come in handy.

[*] I spent considerable time experimenting in order to optimize the 
sharpening and JPEG-quality settings that Qdig passes to `convert' for 
various image sizes.  These settings result in resampled "crisp" images 
that keep the original's "crispness", while softness is retained in soft 
images.  IMHO Image Magick is superior to GD when these settings are 
used.  Visit the link above to judge for yourself, but keep in mind that 
Qdig converted them with my settings for a "medium" sized image.

Hagan



More information about the pmwiki-users mailing list