Does anyone know how to reduce the image file size using image magick. It seems when I use the Scale method the image file size is reduced but does not reduce the file size enough on larger images (i.e. > 300k). I have tried using the Sample method but do not see any file size reduction that is different from the Scale method. I would like to take a 300k+ image and resample to 35 to 40k. Below is a snippet of how I am trying to sample:
$geometry = ($newwidth x $newheight);
$im->Sample(geometry => $geometry);
$im->Write("$magick_full");