views:

389

answers:

2

Hi

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..

+2  A: 

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

logicnp
A: 

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

Tomasz Orłowski