简体   繁体   中英

reduce image size in bytes without resize and quality lose in c#

I m using C#.NET 4.0

I have an jpeg image and i want to reduce its size in bytes .I don't want to change the image size in manner of height and width and not want to lose image quality.Some bit of reduce quality is not an issue. I try to make it a thumbnail image but it reduce the size according to height and width.

I can't found any solution. Any type help will be appreciated..

Size reduction is generally accompanied by quality reduction. You cannot have it both ways.

How about saving jpeg at 90% quality (which usually provides good quality of an image) and then comparing size with your original jpeg file. Something like this: new jpeg < old jpeg ? new jpeg : old jpeg

如果要减小图像尺寸,则必须修剪宽度和高度,否则将只能缩小尺寸,除非无法缩小。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM