Click here to Skip to main content
16,021,125 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
is their any way to shrink image without losing quality.

I require any algorithm or c# coding to make this.
Posted
Updated 1-Apr-13 2:57am
v2
Comments
SoMad 1-Apr-13 9:07am    
I see that you updated this question. I am curious as to why you don't believe what OriginalGriff wrote in Solution 1. Is there some vital piece of information that you forgot to include in your description?

Soren Madsen

1 solution

No. There is no generic magic which will do this, otherwise you could just apply it to the output of your image above repeatedly, and shrink any image down to 2K without loosing info or quality.

There are ways to make image files smaller, but they all involve throwing away information of some kind, mostly in ways that the user doesn't notice. For example, an 100x40 bitmap would be around 18K, but as a JPG file it could be a lot smaller maybe 10K, maybe 5K - it depends on the content. But it does that by throwing away accuracy in ways users don't notice - you would though if you load a bitmap, save it as a jpeg, then load it as a jpeg and save it again as a different jpeg. Comparing the output with the original bitmap input, and you will notice some blurring, some lack of range in the colours, and so forth, that you don't necessarily spot when looking at the image alone.
 
Share this answer
 
Comments
Dave Kreskowiak 1-Apr-13 9:40am    
I don't know which douch bag voted you a 1. It's a perfectly good anwer given the vagueness of the question.

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