The Big Spring Sale! Up to 50% off!

Images fallback

luigiurrea
5 Posts
luigiurrea posted this 12 August 2020
Ask a Question

Hi, started using WebP images on my website, since Nicepage now supports that type of image.

Just found a problem, Safari browser from Apple doesn't support WebP, so none of my images are displayed.

I just read searching the internet that "image fallback" needs to be implemented, in order for the images to be displayed. But this needs to be accomplished on the HTML and CSS code.

Is Nicepage able to implement on the HTML and CSS code if a .jpg image or a .webp image needs to be served depending on the browser used?

For example, right now Nicepage is able to determine if an image needs to be responsive according to the screen size.

So in my case, I want Nicepage to determine if Safari is used, serve a .jpg image, but if any other browser is used, serve a .webp image.

Thank you!

Hi, started using WebP images on my website, since Nicepage now supports that type of image. Just found a problem, Safari browser from Apple doesn't support WebP, so none of my images are displayed. I just read searching the internet that "image fallback" needs to be implemented, in order for the images to be displayed. But this needs to be accomplished on the HTML and CSS code. Is Nicepage able to implement on the HTML and CSS code if a .jpg image or a .webp image needs to be served depending on the browser used? For example, right now Nicepage is able to determine if an image needs to be responsive according to the screen size. So in my case, I want Nicepage to determine if Safari is used, serve a .jpg image, but if any other browser is used, serve a .webp image. Thank you!
Vote to pay developers attention to this features or issue.
3 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 25 August 2020

Hi,

Unfortunately, we haven't such functionality, but we have added your request to our wishlist.

Also, it looks like Apple is planning to support this image format https://www.macrumors.com/2020/06/22/webp-safari-14/

...................................................
Sincerely,
Susanna I.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi, Unfortunately, we haven't such functionality, but we have added your request to our wishlist. Also, it looks like Apple is planning to support this image format https://www.macrumors.com/2020/06/22/webp-safari-14/ ................................................... Sincerely, Susanna I. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
Yannis 2810
14 Posts
Yannis 2810 posted this 25 August 2020

Actually, there is a simple solution. I don’t know if it works in all hosts, but it does work in mine: use htaccess to serve both jpeg and webp images.

First create webp copies of all images used in the site, so each image will be available as jpg and webp. Filenames should be identical and all images must be in the same folder.]

Then follow the instructions here:
https://github.com/vincentorback/WebP-images-with-htaccess

Actually, there is a simple solution. I don’t know if it works in all hosts, but it does work in mine: use htaccess to serve both jpeg and webp images. First create webp copies of all images used in the site, so each image will be available as jpg and webp. Filenames should be identical and all images must be in the same folder.] Then follow the instructions here: [https://github.com/vincentorback/WebP-images-with-htaccess][1] [1]: https://github.com/vincentorback/WebP-images-with-htaccess
luigiurrea
5 Posts
luigiurrea posted this 25 August 2020

Actually, there is a simple solution. I don’t know if it works in all hosts, but it does work in mine: use htaccess to serve both jpeg and webp images.

First create webp copies of all images used in the site, so each image will be available as jpg and webp. Filenames should be identical and all images must be in the same folder.]

Then follow the instructions here:
[https://github.com/vincentorback/WebP-images-with-htaccess][1]

[1]: https://github.com/vincentorback/WebP-images-with-htaccess

Thank you, I can't use this , since I don't have access to the .htaccess file. Hopefully starting September Apple finally lands a solution

> Actually, there is a simple solution. I don’t know if it works in all hosts, but it does work in mine: use htaccess to serve both jpeg and webp images. > > First create webp copies of all images used in the site, so each image will be available as jpg and webp. Filenames should be identical and all images must be in the same folder.] > > Then follow the instructions here: > [https://github.com/vincentorback/WebP-images-with-htaccess][1] > > > [1]: https://github.com/vincentorback/WebP-images-with-htaccess Thank you, I can't use this , since I don't have access to the .htaccess file. Hopefully starting September Apple finally lands a solution
You must log in or register to leave comments