在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:contentful-labs/Concorde开源软件地址:https://github.com/contentful-labs/Concorde开源编程语言:Objective-C 42.0%开源软件介绍:ConcordeThis is a framework for downloading and decoding progressive JPEGs easily on iOS and OS X. It uses libjpeg-turbo as underlying JPEG implementation. We vendor version 1.4.0 of the static library from libjpeg-turbo's official release for convenience. UsageSimply install it via CocoaPods:
and then use let imageView = CCBufferedImageView(frame: ...)
if let url = NSURL(string: "http://example.com/yolo.jpg") {
imageView.load(url)
} If you use Contentful, install the subspec:
and replace your usage of Manual integrationYou can also integrate Concorde as a subproject or download a binary build from the releases section. Please note that those are only provided for iOS at the moment. LicenseCopyright (c) 2015 Contentful GmbH. See LICENSE for further details.
The examples use http://pooyak.com/p/progjpeg/, which artificially slows the connection down to 0.5 Kilobyte/second to demonstrate the differences between regular and progressive JPEGs. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论