Git Product home page Git Product logo

nuke-webp-plugin's Introduction

Hi there ๐Ÿ‘‹

nuke-webp-plugin's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nuke-webp-plugin's Issues

animated webp not support.

animated webp not support. my code:

    ImagePipeline.Configuration.isAnimatedImageDataEnabled = true
    WebPImageDecoder.enable()
    let url = URL(string: path)!
    Nuke.loadImage(with: url, into: imageView!)

Update to use v10 of Nuke

Current version of this plugin has a dependency of Nuke till version 10.0, not including it. This does not allow us to use the latest major update of Nuke in our project. Can you please update to dependency settings of the Podspec to use the latest Nuke version.

Can't use this plugin in a project with nuke-alamofire-plugin

I tried installing this plugin in my project which already has nuke-alamofire-plugin. Looks like they have different requirements for Nuke. Here's the output from running pod install

[!] CocoaPods could not find compatible versions for pod "Nuke":
  In snapshot (Podfile.lock):
    Nuke (= 5.1.1, ~> 5.0)

  In Podfile:
    Nuke-Alamofire-Plugin was resolved to 2.0, which depends on
      Nuke (~> 5.0)

    Nuke-WebP-Plugin was resolved to 1.1.0, which depends on
      Nuke (~> 6.0)

Is there a way around this? All webP images in my app are not loading currently, I'd be grateful for any help, thanks :)

How to support for still / animated WebP image format

I would like to use Nuke to deal with web image loading and image cache.
And I also have need for loading animated WebP image so I import NukeWebPPlugin.
I wrote some code with Nuke for testing:

WebPImageDecoder.enable()
let urlStr = "https://isparta.github.io/compare-webp/image/gif_webp/webp/2.webp"
if let onlineFileUrl = URL(string: urlStr) {
let task = ImagePipeline.shared.loadImage(with: onlineFileUrl, queue: nil, progress: nil) { (result: Result<ImageResponse, ImagePipeline.Error>) in
switch result {
case .success(let imageRespoonse):
//...deal with image
break
case .failure(let error):
debugPrint("error: (error.localizedDescription)")
//...error handling
break
}
}

And I got an error:
"decoding failed : Failed to create an image from the image data"
I would ask How to support for still / animated WebP image format?
Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.