Perl: the Markov chain saw | |
PerlMonks |
ImageMagick alternative for compressing images?by Seumas (Curate) |
on May 27, 2002 at 19:34 UTC ( [id://169635]=perlquestion: print w/replies, xml ) | Need Help?? |
Seumas has asked for the wisdom of the Perl Monks concerning the following question:
I need to compress images that are uploaded by users when the image file size is greater than a specific size. For example, if someone uploads a 150k file, I want to compress it so that it is 100k or less (perhaps by compressing as a JPG with a quality of 80 -- and then doing that again if the resulting file is *still* over 150k). The problem is that Image::Magick doesn't seem to exist on CPAN anymore. It has a record but the download 404's me -- and the most recent version I can find anywhere on mirrors is *.31 (as opposed to *.39) and it won't compile. Can anyone reccommend an alternative way to accomplish this? There will likely be 1.5 million images on the server at any one time so restricting the size is important -- and just putting an upload cap on the file size is a lesser solution as it requires extra work on the user's part to whip out an editor and figure out how to compress their images and so on.
Back to
Seekers of Perl Wisdom
|
|