Does anyone know how to reduce the image file size using image magick. It seems when I use the Scale method the dimensions are reduced but the file size does not get reduced enough. For instance, a 400k image is only reduced to 160k which is not acceptable for web download. I have tried using the Sample method but do not see any difference when compared to the Scale method. I would like to take a 400k+ image and resample to 35 to 40k. The image is JPG format. Below is a snippet of how I am trying to sample:
Thank you for your input.$imgfile = "photo.jpg"; $geometry = ($newwidth x $newheight); $im->Sample(geometry => $geometry); $im->Write("JPG:../images/$imgfile");
David K.
In reply to Image Magick - Sample vs. Scale by db2admin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |