[magick-users] ImageInfo's setQuality doesnt seems to work

Martin Oligny MOligny at mediagrif.com
Mon Apr 9 12:16:44 PDT 2007


Hi,
 
I'm using Jmagick for ImageMagick 6.1.8
 
I'm tryin to lower the quality of a jpg, without altering its size. My
guess is what i did in that snippet, without success : 
 
wImage = new MagickImage(); 

wImage.blobToImage( wInfo, wOut.toByteArray() );

wImage.setMagick( wMagick ); 

wImage.setCompression(CompressionType.JPEGCompression);

wImage.profileImage("*", null);

wImage.enhanceImage(); 

wInfo.setCompression(CompressionType.JPEGCompression);

wInfo.setQuality(10);

return wImage.imageToBlob( wInfo );

 

I've been able to apply many modification to the jpg with success, but
'just' setting a different quality doesnt seems to work; The result is
the same, in file size and human eye analysis.

 

Am i doing something wrong? Is the feature bugged? Why setQuality on
ImageInfo and not on MagickImage?

 

Thanks a lot!

 

Mart.



More information about the Magick-users mailing list