« Return to Thread: How to do JPEG Compression Save at 10

How to do JPEG Compression Save at 10

by prasadtv :: Rate this Message:

Reply to Author | View in Thread

Hi All,

I am using JMagick to resize JPG images. I am able to resize to any specified size. The problem is, I want to save the generated image using JPEG Compression "10". By default JMagick saves the images in JPEG Compression "12". But I want to save the generated image using JPEG Compression "10" and JPEG Compression "5" also. Please let me know any body has solution for this.

It will be great help for me, if some one helps on this...

I am using the following code to resize:

ImageInfo info = new ImageInfo();

MagickImage blobImage = new MagickImage(info, srcImageData);

blobImage.setFilter(FilterType.HermiteFilter);

MagickImage scaled = blobImage.zoomImage(imgWidth, imgHeight);

processedImageData = scaled.imageToBlob(info);

scaled.setFileName("F:\\imagestoprocess\\GeneratedImages\\shd0112l.jpg");

scaled.writeImage(info);

Thanks & regards

Prasad T.V


-----------------------------------------------------------------------------------------------------------------------------
Disclaimer
-----------------------------------------------------------------------------------------------------------------------------

"This message(including attachment if any)is confidential and may be privileged.Before opening attachments please check them
for viruses and defects.MindTree Consulting Private Limited (MindTree)will not be responsible for any viruses or defects or
any forwarded attachments emanating either from within MindTree or outside.If you have received this message by mistake please notify the sender by return  e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited.  Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission."

-----------------------------------------------------------------------------------------------------------------------------
_______________________________________________
JMagick mailing list
JMagick@...
http://www.yeo.id.au/mailman/listinfo/jmagick

 « Return to Thread: How to do JPEG Compression Save at 10