通过代码压缩图像 [英] to compress images through code
本文介绍了通过代码压缩图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好朋友,
我想在数据库中保存图像并希望第一次压缩它,或者使它变小,这样数据库的尺寸就会很小。怎么做?使用SQL 2005数据库。
hello friends,
i want to save images in a database and want to 1st compress it, or make it small size so that database will be of small size. How to do that? Using SQL 2005 database.
推荐答案
请参阅我对问题的评论,并且: http://en.wikipedia.org/wiki/Lossless_compression [ ^ ],
http://en.wikipedia.org/wiki/Image_compression [ ^ ]。
对于特定于图像和标准图像压缩算法的压缩,请参阅:
http://msdn.microsoft.com/en-us/library/ms142147.aspx [ ^ ],
http://msdn。 microsoft.com/en-us/library/9t4syfhh.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/system.drawing.imaging.imageformat.aspx [ ^ ]。
格式化,查找和阅读其规范,了解其压缩质量,压缩率与质量和其他相关属性。这个主题太大了,无法在快速回答中涵盖,但您可以轻松找到适合您目的的合理选择;只做一些最小的研究和实验。
-SA
Please see my comment to the question and this: http://en.wikipedia.org/wiki/Lossless_compression[^],
http://en.wikipedia.org/wiki/Image_compression[^].
For compression specific to images and standard image compression algorithms, please see:
http://msdn.microsoft.com/en-us/library/ms142147.aspx[^],
http://msdn.microsoft.com/en-us/library/9t4syfhh.aspx[^],
http://msdn.microsoft.com/en-us/library/system.drawing.imaging.imageformat.aspx[^].
In each format, find and read its specification, to learn about its compression quality, compression rate vs quality and other related properties. This topic is too big to cover in a Quick Answer, but you can easily find a reasonably good option for your purpose; just do some minimal research and experimenting.
—SA
这篇关于通过代码压缩图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文