ryokosuge / nuke-webp-plugin Goto Github PK
View Code? Open in Web Editor NEWSupport WebP Plugin for Nuke
License: MIT License
Support WebP Plugin for Nuke
License: MIT License
When installing through carthage I get this warning. Libwebp has a swift wrapper https://github.com/ainame/Swift-WebP can libwep library be replaced with its wrapper
Make it available for applications targeting tvOS.
Is there a way to use this plugin with SPM?
I want to rewrite decode processing of WebP image written in Objective-C with Swift.
Parse error: expected string after dependency type in line: github 'ryokosuge/Nuke-WebP-Plugin'
animated webp not support. my code:
ImagePipeline.Configuration.isAnimatedImageDataEnabled = true
WebPImageDecoder.enable()
let url = URL(string: path)!
Nuke.loadImage(with: url, into: imageView!)
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.
Hope to support
The copy-frameworks target fails when I am building through Xcode.
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 :)
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.
ref. kean/Nuke@e955ca7
Make it available for applications targeting macOS.
sample diffrent code cocapods
Make it available for applications targeting watchOS.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.