Jump to content

Do not change photos to webp


Recommended Posts

  • 2 months later...

I'd like to stop webp being the default format, because the lightbox that comes with the skin does not support webp. The developer of the skin has long since disappeared.

Ideally, CubeCart wouldn't change the image format, so if a jpeg is uploaded it stays as a jpeg, if people want to use webp they could, just upload it as that. Anyway, how to stop the conversion from jpeg to webp?

Link to comment
Share on other sites

Probably because the "lightbox" is (a jquery plugin):

 * Featherlight - ultra slim jQuery lightbox
 * Version 1.3.3 - http://noelboss.github.io/featherlight/


where the latest version is at v1.7.14 -- and now handles the WEBP format.

Edited by bsmither
Link to comment
Share on other sites

7 hours ago, steve-t said:


I tried uploading a sscreenshot but server rejects it, error code 200. Instead:

Product with webp image: https://cavalier-gift-shop.org/magic-puppy-valentine-s-card.html (fails)

Product with a jpeg (any other product): https://cavalier-gift-shop.org/best-cavalier-mum-mug.html (all ok)

I see. It's definitely failing to load in the image.

Link to comment
Share on other sites

Yes it did, you only need to add '|webp' to the line of image formats in featherlight.min.js:

Original: regex: /\.(png|jpg|jpeg|gif|tiff?|bmp|svg)(\?\S*)?$/i,

Replace with: regex: /\.(png|jpg|jpeg|gif|tiff?|bmp|svg|webp)(\?\S*)?$/i

Thanks again for this suggestion.

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...