webp

webp was created by vijit555

Posted 2 years 9 months ago #61107
Right now plugin cannot correctly process webp images and it displays them as iframe, I tried to modify assetts/mediaboxck.js lines 781

if (URL.match(/\.webp|\.gif|\.jpg|\.jpeg|\.png|twitpic\.com/i) || mediaType == 'image') {

and 1340 - 1341

if ((prevMedia >= 0) && (mediaArray[prevMedia][0].match(/\.webp\.gif|\.jpg|\.jpeg|\.png|twitpic\.com/i))) preloadPrev.src = mediaArray[prevMedia][0].replace(/twitpic\.com/i, "twitpic.com/show/full");
if ((nextMedia >= 0) && (mediaArray[nextMedia][0].match(/\.webp|\.jpg|\.jpeg|\.png|twitpic\.com/i))) preloadNext.src = mediaArray[nextMedia][0].replace(/twitpic\.com/i, "twitpic.com/show/full");

but still doesn't work.

Since nowadays webp images are basically required for Google vitals, I'd like to ask which lines should I modify to add webp support.

Thank you.

Screenshot below: how plugin loads webp images now

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic webp

Posted 2 years 9 months ago #61108
Hi
thank you for your feedback
I will check that and I will let you know in the coming days
CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic webp

Posted 2 years 9 months ago #61114
Hi
please try the 2.4.1 version, I have added the WEBP version, let me know if it works for you
CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by vijit555 on topic webp

Posted 2 years 9 months ago #61115
Still same result, displayed in iframe

Last Edit:2 years 9 months ago by vijit555
Last edit: 2 years 9 months ago by vijit555.

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic webp

Posted 2 years 9 months ago #61116
please give me the url of your page to check that

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by vijit555 on topic webp

Posted 2 years 9 months ago #61117
I apologize, seems like my VPN cache was returning an old version of the page, I switched location and now it works, I will test it better and if it doesn't work I'll write back. Thank you indeed for your kind support.

Please Log in or Create an account to join the conversation.

Time to create page: 0.723 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1071 guests and no members online