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 bu开发者_运维百科t 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
If you want reduce the image size then you have to trim the width and height, according to that only the size reduces unless it is not possible.
精彩评论