[magick-users] JPEG Compression - Image Sizes
Rebecca York
Rebecca.York at 2ndbyte.com
Tue Feb 13 03:28:43 CST 2007
I have downloaded the "ImageMagickObject (COM+)" object from the website,
and have been attempting to get it to resize the Images to the same quality
and size that our Photoshop scripts do.
To save space in the email I've put the example images on a website (about
350k?)
http://girlzone.me.uk/misc/ImageMagick/ImageMagick.html
The source image is 1013x524 (Figure 5) and the target size is 391x202
(Figure 1).
In the below url, Figure 1 demonstrates the Image saved down by our
photoshop scripts (which we want to replace).
Figure 2 demonstrates the output from Image Magick saved to JPEG at 100%
quality (98K)
Now, using ImageMagick, to get the file down to the same size as the
photoshop image (19K) I have to set the JPEG quality to 11%,
however this results in extreme jpeg compression noise (see figure 3)
We're also testing another COM tool we have called "LeadTools", however the
resizing quality of this is poor - so we have decided aganist using this as
it would require more licences.
But, if the 100% Quality image generated by ImageMagick is opened by
LeadTools, and resaved at 66% Quality the output file (Figure 4) is 19K and
has no more jpeg compression than the Photoshop image.
Saving the file at 66% Quality in ImageMagick results in a 30K file.
The am using the following call to do the resize
imageMagick.Convert "Input.jpg", "-filter", "Quadratic", "-resize",
"391x202!", "-sharpen", "1x0.75", "-unsharp", "1x0.25", "-quality", "100",
"-comment", "%f", "-sampling-factor", "2x1", "-compress", "JPEG",
"Output.jpg"
I'm guessing I've missed a command somewhere, but couldn't find anything
obvious in the command list.
Can anyone shed any light as to why the ImageMagick jpegs are so bloated in
size?
Regards,
Becky.
More information about the Magick-users
mailing list