yeatse / kingfisherwebp Goto Github PK
View Code? Open in Web Editor NEWElegantly handle WebP format with Kingfisher.
License: MIT License
Elegantly handle WebP format with Kingfisher.
License: MIT License
How can i known the webp which is animated play complete
Will there be swift 4 support?
hello, any plans to support SPM?
carthage update --no-build
carthage build --no-use-binaries KingfisherWebP
/tmp/static.xcconfig.SA6J0K
*** xcodebuild output can be found in /var/folders/74/lhqsynh976l12m_wrcmmg7880000gp/T/carthage-xcodebuild.lLFdWa.log
*** Skipped building KingfisherWebP due to the error:
Dependency "KingfisherWebP" has no shared framework schemes
If you believe this to be an error, please file an issue with the maintainers at https://github.com/yeatse/KingfisherWebP/issues/new
例如webp动图播一次后,做一些移除此视图、或替换成别的图片的操作
When importing into another package as dependency the following errors are returned when compiling:
The swift package file looks like this:
let package = Package(
name: "SomePackage",
platforms: [
.iOS(.v13)
],
products: [
// ...
],
dependencies: [
// ...
.package(
name: "Kingfisher",
url: "https://github.com/onevcat/Kingfisher.git",
"6.2.0"..<"7.0.0"
),
.package(
name: "KingfisherWebP",
url: "https://github.com/Yeatse/KingfisherWebP.git",
"1.3.0"..<"2.0.0"
)
],
targets: [
.target(
name: "SomePackage",
dependencies: [
// ...
"Kingfisher",
"KingfisherWebP"
],
resources: [.process("Resources")]
)
]
Thank you
Hi,
I am trying to animated webp but it's not working.
I can only see the first frame of the animated webp.
here's my code:
if let path = Bundle.main.path(forResource: "loader", ofType: "webp") {
let loader = AnimatedImageView()
loader.kf.setImage(with: URL(fileURLWithPath: path))
loader.startAnimating()
}
Note: KingfisherManager is set as a global default option in my AppDelegate.
I hope you can help me on this.
Thanks.
hello
now the KingfisherWebP dependent the Kingfisher SDK version is 7.8.1,Kingfisher had give a update for adapter Apple privacy policy, version is 7.9.0:
can KingfisherWebP update the dependent Kingfisher's version?
For more info, see:
Describing data use in privacy manifests | Apple Developer Documentation
Describing use of required reason API | Apple Developer Documentation
Get started with privacy manifests - WWDC23 - Videos - Apple Developer
Thanks!
Thanks @yeatse for merging the last PRs.
Can you please update the cocoapods version ?
Thanks a lot!
my Podfile:
pod 'Kingfisher', '~> 6.0'
pod 'KingfisherWebP'
pod install, log error
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Kingfisher":
In snapshot (Podfile.lock):
Kingfisher (= 6.0.1, ~> 6.0)
In Podfile:
Kingfisher (~> 6.0)
KingfisherWebP was resolved to 0.2.2, which depends on
Kingfisher (~> 3.0)
Which method we can use to generate a WebP image with the given quality.
extension KingfisherWrapper where Base: Image {
static func image(webpData: Data, scale: CGFloat, onlyFirstFrame: Bool) -> Image?
0 libsystem_platform.dylib
_platform_memmove + 76
1 KingfisherWebP
WebPImageCreateWithData + 160
2 KingfisherWebP
$s10Kingfisher0A7WrapperV0A4WebPSo7UIImageCRbzlE5image8webpData5scale14onlyFirstFrameAFSg10Foundation0G0V_12CoreGraphics7CGFloatVSbtFZAF_Tg5Tf4nnnd_n + 116
3 Kingfisher
$s10Kingfisher18ImageDataProcessorC9doProcess33_6119A2C527FFA834F85B326B80E79A62LLyyF + 604
4 Kingfisher
$s10Kingfisher18ImageDataProcessorC7processyyFyycACcfu_yycfu0 + 20
5 Kingfisher
$s10Kingfisher13CallbackQueueO7executeyyyycFyyScMYccfU_TA + 20
6 Kingfisher
$sIegh_IeyBh_TRTm + 28
7 libdispatch.dylib
__dispatch_call_block_and_release + 32
8 libdispatch.dylib
__dispatch_client_callout + 20
9 libdispatch.dylib
__dispatch_lane_serial_drain + 748
10 libdispatch.dylib
__dispatch_lane_invoke + 380
11 libdispatch.dylib
__dispatch_root_queue_drain_deferred_wlh + 288
12 libdispatch.dylib
__dispatch_workloop_worker_thread + 404
13 libsystem_pthread.dylib
__pthread_wqthread + 288
KingfisherWebP 0x0000000103a46e6c WebPPictureImportCGImage + [CGImage+WebP.m : 79] 线上崩溃很严重。
static func image(webpData: Data, scale: CGFloat, onlyFirstFrame: Bool) -> Image?{...}
希望这个方法为public
public static func image(webpData: Data, scale: CGFloat, onlyFirstFrame: Bool) -> Image?{...}
可以在外部调用此方法进行webp的数据转图片操作了,毕竟这样更方便一些。
(Kingfisher 里类似方法是public的
public static func image(data: Data, scale: CGFloat, preloadAllAnimationData: Bool, onlyFirstFrame: Bool) -> Image? {...})
libWebP 0.6.0 was available from jan-25 2017, why are you using an older library
I made a comparison with SDWebImageWebPCoder and found that the KingfisherWebP animation was not normal after being loaded. The webP resources are as follows:home_broadcast.webp
I built libwebp framework via iosbuild.sh and imported using cocoapods as vendored framework to project. But i having problems with import paths in CGImage+WebP.m:
If i change imports to:
#import "webp/demux.h" -> #import "webpdemux/demux.h"
#import "webp/mux.h" -> #import "webpmux/mux.h"
the error goes away, but i have problem with symbols for different archs (libwebp was build for all archs):
Kingfisher 5.0 was released, it would great to follow the step.
i find an issue #13 which you had supported animated webp, i try to fetch a resource webp image from server, but it didn't work, i don't know whether my usage is wrong? i paste some code in here.
// set global default options for Kingfisher
KingfisherManager.shared.defaultOptions = [.processor(WebPProcessor.default), .cacheSerializer(WebPSerializer.default)]
then , in somewhere
imageView.kf.setImage(with: URL(string: url))
need some other configurations?
give a resource for test
https://p.upyun.com/demo/webp/webp/animated-gif-0.webp
thanks
Hi everyone,
I have successfully to load webp image from url. Could you have me to write some to used to cache webp image?
Thanks!
国内下载不了libwebp(0.6.0)有其他源么
Hi, I have a problem, I try to using a webp image, but it plays very slowly. It happends when I using KingfisherWebP, it works fine on Chrome brower. So could you please take a look at it for me? Thanks:)
This WebP file:
test.webp.zip
KingfisherManager.shared.defaultOptions += [
.processor(WebPProcessor.default),
.cacheSerializer(WebPSerializer.default)
]
load slow from disk cache, set image completionHandler takes up to 10s to callback for a 5.5m webp animated image
加载本地的webp资源,首次展示有延迟
Hello.
UICollectionView with WebP images is not smooth when scrolling.
This issue was fine until version 1.5.1, but starting from version 1.5.2.
Please check the sample app I created.
-> https://github.com/Bone-Song/LibTest/tree/2b2f66ef8065855ac1e699ea3fb2a65f0b1b60fb/KingfisherWebPTest
Please let me know if there are any changes in using KingfisherWebP.
I hope solves this issue. thank you.
Hello?
0-day issue with libwebp
libwebp-xcode has fixed the issue and this library also requires an update.
https://github.com/SDWebImage/libwebp-Xcode/releases/tag/1.3.2
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.