question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

  • React Native version: v0.59.8
  • React version: 16.8.6
  • React Native Fast Image version: 6.0.0

In the latest release using cocapods and WebP the images are not displayed at all. Downgrading to 5.4.2 works just fine.

I guess there is something with SDWebImage that needs to be patched?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

29reactions
pontusabcommented, Jun 8, 2019

Import in AppDelegate.m:

#import "SDImageCodersManager.h"
#import <SDWebImageWebPCoder/SDImageWebPCoder.h>

An add:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // ...
    // Register WebP format support
    [SDImageCodersManager.sharedManager addCoder:SDImageWebPCoder.sharedCoder];
    // ...
}
3reactions
srajesh636commented, Jun 24, 2020

Import in AppDelegate.m:

#import "SDImageCodersManager.h"
#import <SDWebImageWebPCoder/SDImageWebPCoder.h>

An add:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // ...
    // Register WebP format support
    [SDImageCodersManager.sharedManager addCoder:SDImageWebPCoder.sharedCoder];
    // ...
}

Thanks, it Worked like charm

Read more comments on GitHub >

github_iconTop Results From Across the Web

Performance Team Proposes Enabling WebP by Default in ...
If the proposal is approved, version 6.0 will generate WebP images by default for new JPEG uploads and will use WebP images by...
Read more >
Default WebP Images in WordPress 6.0? - Vipe Studio
If the proposal is approved, WebP images will be generated by default for new JPEG uploads.
Read more >
Does wordpress 6.0 support webp format ? | WordPress.org
Does wordpress 6.0 support webp format ? ... It is not possible to upload a WebP image to a media file, but can...
Read more >
imagemin-webp - npm
WebP imagemin plugin. ... Start using imagemin-webp in your project by running `npm i imagemin-webp`. ... 6.0.0. 67,134. 3 years ago.
Read more >
WebP Image Conversion Settings
The WebP format has recently become supported in most modern browsers, and with this release CommonSpot supports rendering of WebP images in a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found