Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
hi ,

i want an ASP.net source code for image compression using hufman code or any other algorithm of image compression .. i searched a lot but i can't find it with asp.net language .. can anyone how know help me please i need this part in my project as an extra service ??

thank u :)
Posted
Updated 3-Jul-12 6:25am
v2
Comments
[no name] 3-Jul-12 12:33pm    
" searched a lot but i can't find it ", yeah right. One search 113000 results one of which is this http://www.codeproject.com/Articles/9021/Simple-and-fast-Huffman-coding
CodingLover 3-Jul-12 12:35pm    
There is specifically nothing call ASP.Net language. Search related with the back-end of your application.
Sergey Alexandrovich Kryukov 3-Jul-12 12:42pm    
What is this beast -- ASP.NET language? There is no such thing. No wonder you cannot find anything. You need to look for Haffman code (pay attention for spelling: not "Hafman").
--SA
Manfred Rudolf Bihy 3-Jul-12 14:44pm    
Pay attention to spelling: Huffman code. :P
khaber22 3-Jul-12 13:39pm    
wooooow , great comments .. i need it in c# not in c++ sorry for not being specific , but thanks i already find these projects before in c++,c,matlab,vb

and for "ASP.NET language" sorry for that mistake it's a web application framework i understand my mistake view of it and I'm a beginner , so please teach me not laugh at me ..

thank u guys :)

 
Share this answer
 
Comments
khaber22 3-Jul-12 13:43pm    
thank u very much for your help .. I'll try it :)
Sergey Alexandrovich Kryukov 3-Jul-12 13:51pm    
My pleasure.
Good luck, call again.
--SA
Espen Harlinn 3-Jul-12 16:18pm    
5'ed!
Sergey Alexandrovich Kryukov 3-Jul-12 17:08pm    
Thank you, Espen.
--SA
Another alternative of course, is to use zlib. You'll not ever find a file compressed with Huffman that is smaller than the same file processed with zlib's deflate.

Here, lemme google that for ya[^]

From memory, in a worst-case, deflate adds at most 12 or 16 bytes to an input stream. Depending on the method of sharing the tree (either pre-defined or transmitted) you can find that Huffman behaves poorly or abhorently on (some) small files.

That's why zlib's deflate is used in everything from web-servers to mobile phones to png+jpg to pdf etc, etc.
 
Share this answer
 
v2
Comments
Espen Harlinn 3-Jul-12 16:18pm    
5'ed!

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