iOS 应用程序上的 jpeg2000
有人在 ios 上成功转换和使用 jpeg2000 吗?我正在编写和库存应用程序,如果我能弄清楚如何让手机支持它,我很乐意使用 jpeg2000 文件类型。
我看到有一个不错的 webp 项目 - https://github.com/carsonmcdonald/WebP -iOS-example - 看起来它也可以工作,但我认为 jpeg2000 结果更好。
只是想评估选项。提前谢谢
Has anyone had luck converting and using jpeg2000 on the ios? I am writing and inventory app and would love to go with a jpeg2000 file type if I can figure out how to get the phone to support it.
I have seen that there is a nice project for webp - https://github.com/carsonmcdonald/WebP-iOS-example - which seems like it would also work but I think the jpeg2000 results are even better.
Just trying to eval options. Thx in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我们在我的上一个项目 (Spot.app) 中使用了 JPEG 2000
我从这里下载了官方开源 JPEG 2000 编解码器源: http://www.openjpeg.org/index.php?menu=download
将其构建为静态库,瞧。
这是我创建的一些示例代码: https://gist.github.com/1861465
We used JPEG 2000 for my last project (Spot.app)
I downloaded the official open-source JPEG 2000 codec source from here: http://www.openjpeg.org/index.php?menu=download
Build it into a static library and voila.
Here's some sample code I created: https://gist.github.com/1861465
Image IO 具有出色的图像转换功能,无需使用第 3 方代码。在此处查看更多信息:如何将 UIImage 转换为 J2K ( iOS 中的 JPEG2000)?
无需引入 JPEG 2000 项目。
Image IO has nice image conversion functions that eliminate the need for 3rd party code. See more here: How do I convert UIImage to J2K (JPEG2000) in iOS?
No need to bring in the JPEG 2000 project.
iOS 确实支持 JPEG 2000,但即使从 iOS 16 开始,并非所有 JPEG 2000 图像都是可读的。
例如,西班牙和西班牙的生物识别护照中包含的图像。葡萄牙是有效的 JPEG 2000 编码图像,但 iOS 无法读取。
如果你仔细观察,就会发现关于这个主题的各种代码,但它们现在已经非常过时且不完整。
我已成功为 iOS 编译了 libopenjp2 v2.5.0,并提供了示例代码和完整的分步指南,可在此处获取:
https://github.com/jonathanellis/ios-jpeg2000
iOS does have support for JPEG 2000, however even as of iOS 16, not all JPEG 2000 images are readable.
For example, images contained in biometric passports for Spain & Portugal are valid JPEG 2000 encoded images, but cannot be read by iOS.
If you look hard enough, there are various bits of code floating around on this topic but they are by now very outdated and incomplete.
I have managed to get libopenjp2 v2.5.0 compiled for iOS and provided sample code and a full step-by-step guide, which is available here:
https://github.com/jonathanellis/ios-jpeg2000