项目作者: ryokosuge

项目描述 :
Support WebP Plugin for Nuke
高级语言: Swift
项目地址: git://github.com/ryokosuge/Nuke-WebP-Plugin.git
创建时间: 2018-01-17T01:25:42Z
项目社区:https://github.com/ryokosuge/Nuke-WebP-Plugin

开源协议:MIT License

下载


Nuke-WebP-Plugin

Test or Build
Version
Supoprts
Platform

WebP for Nuke that allows you to load and display WebP image. You can see it for yourself in a demo, included in the project.

Usage

The plugin features a pre-configured Nuke.Manager with WebP support, and an WebPImage:

  1. import Nuke
  2. import NukeWebPPlugin
  3. WebPImageDecoder.enable()
  4. let imageView = UIImageView()
  5. let webpimageURL = URL(string: "https://example.com/sample.webp")!
  6. Nuke.loadImage(with: url, into: imageView)

Installation

CocoaPods

  1. pod 'Nuke-WebP-Plugin'

Carthage

  1. github 'ryokosuge/Nuke-WebP-Plugin'

Minimum Requirements

Swift Xcode iOS macOS tvOS watchOS
5.1, 5.2 11.0 11.0 10.13 11.0 4.0

Dependencies

Nuke libwebp
>= 9.0 v1.0.0

Author

ryokosuge, ryo.kosuge@gmail.com

License

Nuke-WebP-Plugin is available under the MIT license. See the LICENSE file for more info.