# The following was supposedly scribed by # jonathan vanasco # on Saturday 05 March 2005 05:02 pm:
>I'm trying to figure out a way to standardize image uploads and make >thumbnails > >What have people here found good to use (a2/mp2)? I've been considering a rewrite of Apache::AutoIndex (if Philippe doesn't beat me to it), and maybe the thumbnail generation needs to be abstracted out into a separate module? One thing that I had planned was to handle thumbnails according to this (proposed) standard: http://jens.triq.net/thumbnail-spec/ Which eliminates the clutter of thumbnail files (and the associated edge-case of "do not generate thumbnails for thumbnails") (and maybe also allows multiple web-based services to utilize a common thumbnail cache (I'll propose that ~/.thumbnails/ corresponds to $DOCUMENT_ROOT/.thumbnails/, but maybe there's a good argument for it living in $TMP (except that there the cache could get lost at reboot.)) >As far as CPAN mods/interfaces go > GD seems to be faster , but it looks awful That seems to be the consensus. However, if you aren't doing anything very complex (e.g. just resize/rotate) it might be worth it. > ImageMagick looks better, more stress on the server ImageMagick does support more formats. >The netpbm suite looks ok, but a potential hassle as it would > require several pipes to do a transform Maybe that would be better with IPC::Run? (But I won't claim to know how the forking that it does interacts with a2/mp2 (yet.)) --Eric -- "Matter will be damaged in direct proportion to its value." -- Murphy's Constant --------------------------------------------- http://scratchcomputing.com ---------------------------------------------