Convert to WEBP?

More
3 days 9 hours ago #85893 by lipatovroman
Hello.
I have 2 image fields and a lot of elements.
Is there the easiest way to convert all images to WEBP format?
Thanks.

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

More
2 days 18 hours ago #85898 by micker
Replied by micker on topic Convert to WEBP?
hello
its possible to use phpthumb librairie to allow webp conversion but some old browser arn't compatible
caniuse.com/webp but need to update image output like this
Code:
<picture> <source srcset="img/awesomeWebPImage.webp" type="image/webp"> <source srcset="img/creakyOldJPEG.jpg" type="image/jpeg"> <img src="img/creakyOldJPEG.jpg" alt="Alt Text!"> </picture>
we will study if we can add it in core

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
2 days 16 hours ago - 2 days 16 hours ago #85900 by iamrobert
Replied by iamrobert on topic Convert to WEBP?
I use the free DJ-WebP Plugin:

dj-extensions.com/dj-webp

It automatically does it for the front end - so is a decent alternative. Asking clients to convert to WebP - seems a step too far.
Last edit: 2 days 16 hours ago by iamrobert.

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

More
2 days 15 hours ago - 2 days 15 hours ago #85902 by micker
Replied by micker on topic Convert to WEBP?
This plugin works in all place ? (Module, view, gallery)
Yes the concept Can be :
- add option in image field to set if we want webp compression
- add webp conversion on upload for each size (l m s o)
- return image with jpg fallback in each part (field, module category etc) with héritage option
The issue IS here
github.com/FLEXIcontent/flexicontent-cck/issues/1062

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]
Last edit: 2 days 15 hours ago by micker.

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

More
2 days 12 hours ago #85903 by lipatovroman
Replied by lipatovroman on topic Convert to WEBP?

hello
its possible to use phpthumb librairie to allow webp conversion but some old browser arn't compatible
caniuse.com/webp but need to update image output like this
Code:
<picture> <source srcset="img/awesomeWebPImage.webp" type="image/webp"> <source srcset="img/creakyOldJPEG.jpg" type="image/jpeg"> <img src="img/creakyOldJPEG.jpg" alt="Alt Text!"> </picture>

we will study if we can add it in core

Ok, Georgios says that we can convert all images on server and then just replace file extensions in DB (find/replace).
But also we need to increase number before file name if the old extension had fewer characters.



So, first step in to convert images on server.
And second is to find and replace png to webp.
Code:
UPDATE _flexicontent_fields_item_relations SET value = REGEXP_REPLACE( REGEXP_REPLACE(value, 'a:([0-9]+):\\{', 'a:\\1+1:{', 1), 'png', 'webp' ) WHERE field_id = 15 AND value LIKE '%png%';

 

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

More
2 days 12 hours ago #85904 by micker
Replied by micker on topic Convert to WEBP?
Yes that the solution for your site and existing image but need to add this in côté (maybe) and i ame agree need to a batch action to create all webp image

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.402 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline