Meet a failure using SDWebImage downloading a WebP image file?
There is a parsing stage when SDWebImage downloads an image. In this stage, SDWebImage asks every registered decoder to convert the origin image data (NSData) to image object (UIImage). And there is no decoder, which has ability to convert the WebP image data to image object.
Solution
Using the SDWebImage/WebP
pod , the problem will be solved.
pod 'SDWebImage', '~> 4.2'
pod 'SDWebImage/WebP'
网友评论