Click here to Skip to main content
15,905,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I would like to resize a picture to a specific file size. For example, no more than 200KB.
What is the best approach to achieve this with C# .NET ?

Thanks !
Posted

1 solution

You may adjust color-depth, image dimensions, compression ratio, etc...
Anyway you'll obtain a deterministic result only with uncompressed picture files (e.g. bitmaps). For compressed ones (for instance jpeg images) I suspect you've to go with successive approximations.
:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900