需要无损文件压缩建议 [英] Need Lossless File Compression Advices

查看:88
本文介绍了需要无损文件压缩建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我正在尝试使用c#开发程序来压缩文件,但我对此表示怀疑:

1-我应该尝试使用一种算法来压缩所有类型的文件吗?算法的任何建议?

2-将文件划分为类别,例如

-文字
-图像
-视频

并使用不同的算法?我应该为每个人使用什么的任何建议?

在此先感谢
拥抱[[​​]]

Hi everyone, im trying to develop a program using c# to compress files, but im with doubts:

1st - should i try to use one algorithm to compress all kind of files? any sugestion of algorithm?

2nd - divide the files in category''s like

-Text
-Image
-Video

And use diferent algoritms? any sugestion of what should i use for each one of them?

Thanks in advance
Hug [[]]

推荐答案

看看 #ziplib [ ^ ]

它相当易于使用,因此您可以对要压缩的文件尝试各种算法.

最好的问候
Espen Harlinn
Have a look at #ziplib[^]

It''s fairly easy to use, so you can try out the various algorithms on the files you want to compress.

Best regards
Espen Harlinn


与无损算法相比,无损压缩具有很大的不同.尽管有损算法根据数据的性质而有很大差异,但无损算法却并非如此.这完全取决于您要针对数据的特定性质优化算法的程度.即使采用无损压缩,但考虑到数据的性质,它对于压缩率也可能非常有用,但要困难得多.同时,通用无损算法是众所周知的,可以使用开源实现,因此我不确定您是否需要开发任何东西. (您可以自己找到这样的实现,还是可能需要一些帮助?)

请参阅:
http://en.wikipedia.org/wiki/Lossy_compression [ http://en.wikipedia.org/wiki/Lossless_compression [
Having compression lossless makes a great difference compared with different lossy algorithms. While lossy algorithms differ dramatically depending on the nature of the data, with lossless algorithms, it''s not so much so. It all depends on how much do you want to optimize your algorithm to the specific nature of data. Even with lossless compression, taking into account the nature of data it could be very useful for compression ratio, doing it is much more difficult. At the same time, general-purpose lossless algorithms are well-known, open source implementations are available, so I''m not sure if you even need to develop anything. (Can you find such implementation by yourself, or you might need some help?)

Please see:
http://en.wikipedia.org/wiki/Lossy_compression[^].
http://en.wikipedia.org/wiki/Lossless_compression[^].

Good luck,
—SA


我同意你们的意思:)

但是,我可以使用Espen Harlinn选择使用该库来压缩文件的算法吗?

我要应用的压缩方式是无损的...

是否建议使用最佳算法?
I agree with you guys :)

But, Espen Harlinn can i choose the algoritm that will be used to compress a file using that library ?

The kind of compression that i want to apply is only lossless...

Any sugestion for the best algoritm to use?


这篇关于需要无损文件压缩建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆