Click here to Skip to main content
14,391,232 members
Rate this:
Please Sign up or sign in to vote.
See more:
At runtime i wanted to reduce the size (physical size) of the image, lets say the image size if 1 MB and i wanted to convert it into 40 KB or 50 KB,

Is there any way to do this, i have tried using Bitmap but it instead of decreasing the size the size increases.

Is there any third party dll i can use

i am doing this is a windows app with C#.
Posted
Rate this:
Please Sign up or sign in to vote.

Solution 1

Use a library like this : http://dynamicimageprocess.codeplex.com/[^]
   
Comments
CPallini 30-Nov-11 5:09am
   
My 5.
Rate this:
Please Sign up or sign in to vote.

Solution 2

There's no magic for this: generally speaking you may reduce image size either reducing its dimensions (scaling it down) or its color depth (a nice program to perform such operations without loosing too much quality is IrfanView[^]). You may also use a compressed image format, lossless or lossy, depending on your needs.
   
v2
Comments
Mehdi Gholam 30-Nov-11 5:05am
   
My personal favourite is FastStone Image Viewer, the OP wanted a c# way though, my 5 anyway!
CPallini 30-Nov-11 5:09am
   
Thank you.

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100