Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryokosuge/nuke-webp-plugin

Support WebP Plugin for Nuke
https://github.com/ryokosuge/nuke-webp-plugin

nuke nuke-webp-plugin swift swift4 swift5 webp webp-support

Last synced: 4 days ago
JSON representation

Support WebP Plugin for Nuke

Awesome Lists containing this project

README

        

# Nuke-WebP-Plugin

![Test or Build](https://github.com/ryokosuge/Nuke-WebP-Plugin/workflows/Test%20or%20Build/badge.svg)
![Version](https://img.shields.io/cocoapods/v/Nuke-WebP-Plugin.svg?label=version)
![Supoprts](https://img.shields.io/badge/supports-CocoaPods%20%7C%20Carthage-green.svg)
![Platform](https://img.shields.io/badge/platforms-iOS%20%7C%20macOS%20%7C%20tvOS%20%7C%20watchOS-lightgrey.svg)

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:

```swift
import Nuke
import NukeWebPPlugin

WebPImageDecoder.enable()

let imageView = UIImageView()
let webpimageURL = URL(string: "https://example.com/sample.webp")!
Nuke.loadImage(with: url, into: imageView)
```

## Installation

### [CocoaPods](https://cocoapods.org/)

```ruby
pod 'Nuke-WebP-Plugin'
```

### [Carthage](https://github.com/Carthage/Carthage)

```ruby
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](https://github.com/kean/Nuke) | [libwebp](https://chromium.googlesource.com/webm/libwebp) |
|:---:|:---:|
| >= 9.0 | v1.0.0 |

## Author

ryokosuge, [email protected]

## License

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