iPhone 的外部 JPG 压缩库?
有谁知道是否有任何可以产生良好图像质量的 JPEG 压缩库已移植到 iPhone 上? UIImageJPEGRepresentation 内部的内置算法会生成巨大的文件(与质量相比),这使得通过网络从手机上传图像比必要的速度慢得多。我可以使用 PHP 内置的 GD 将 iPhone 内部压缩的 JPG 压缩到文件大小的十分之一,而不会显着降低质量......
Does anyone know if any JPEG compression library that produces decent image quality has been ported to the iPhone? The built-in algorithm inside UIImageJPEGRepresentation produces huge files (compared to the quality), which makes uploading images from the phone over the network much slower than necessary. I can compress a JPG compressed inside the iPhone to one tenths of the file size using GD built into PHP, without significant loss of quality...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
出色地。 GD库使用iJPEG库进行压缩。因此,如果您想要相同的质量,您应该使用相同的库:
http://www.ijg.org/
顺便说一句,它是最常用的 jpeg 压缩/解压缩库。
Well. The GD library uses the iJPEG library for compression. So if you want the same quality you should use the same library:
http://www.ijg.org/
It's the most commonly used jpeg compression/decompression library btw.
我也想知道是否有更好的图书馆。我使用 .Net 在服务器上压缩 jpeg 图像,它比 iPhone 的 UIImageJPEGRepresentation 做得更好。我想在上传之前在 iPhone 上将它们尽可能小,因为这是一个非常慢的过程。
I would like to know if there is a better library as well. I'm using .Net to compress jpeg images on the server and it does a much better job than the iPhone's UIImageJPEGRepresentation. I'd like to get them as small as possible on the iPhone before uploading as it a dreadfully slow process.