jpeg2000 on ios app

大憨熊 提交于 2019-11-27 17:00:16

问题


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


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/7047984/jpeg2000-on-ios-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!