Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webp extension JPG as fallback? #271

Open
Allmedialab opened this issue Dec 14, 2018 · 2 comments
Open

Webp extension JPG as fallback? #271

Allmedialab opened this issue Dec 14, 2018 · 2 comments

Comments

@Allmedialab
Copy link

Hi,
Would it be possible to use webp extension with jpeg as fallback in the slider?
Regards & Thanks,
David

@davidghi
Copy link
Member

Hi. The slider doesn't have the fallback to jpg as a built-in feature, but you could do that separately.

Cheers!

@Allmedialab
Copy link
Author

Allmedialab commented Dec 24, 2018

Hi David,

When I create 2 blocks one webp and one jpg it doesn't work.

<img class="sp-image" src="../src/css/images/blank.gif" data-src="img/Pillow-01-1000.jpg" data-small="img/pillow-webp/Pillow-01-500.webp" data-medium="img/pillow-webp/Pillow-01-1000.webp" data-large="img/pillow-webp/Pillow-2000.webp" data-retina="img/pillow-webp/Pillow-2000.webp", data-small="img/Pillow-01-500.jpg" data-medium="img/Pillow-01-1000.jpg" data-large="img/Pillow-01-2000.jpg" data-retina="img/Pillow-01-2000.jpg"/>

The webp is recognized by Microsoft Edge and Google Chrome, but the jpg not by Firefox and Safari.
How do you advice to implement this functionality? Because now only one of the 2 works?
Regards & Thanks,
David

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants