Convert to WEBP?

More
1 year 1 month 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
1 year 1 month 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
1 year 1 month ago - 1 year 1 month 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: 1 year 1 month ago by iamrobert.

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

More
1 year 1 month ago - 1 year 1 month 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: 1 year 1 month ago by micker.

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

More
1 year 1 month 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
1 year 1 month 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.

More
1 year 1 month ago #85911 by iamrobert
Replied by iamrobert on topic Convert to WEBP?
Yes, it works seamlessly across sites:

+ www.jy-storage.com.tw/
+ www.timesmontessori.com/


In my experience, this approach is better since clients typically upload their own JPG files. The bigger issue, however, tends to arise in the maintext field where clients often upload massive 5MB+ image files, impacting performance.

How do you manage situations where clients upload images directly into the maintext field?

Another advantage is the ability to disable it if clients run out of storage space, keeping it flexible.

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

More
1 year 1 month ago - 1 year 1 month ago #85912 by micker
Replied by micker on topic Convert to WEBP?
flexicontent doesn't rezize on upload in editor that an editor function, but you can use image how was uploaded in a flexicontent field in editor ...
in flexicontent you can set max size of original image. User can upload 5mo but we rezize it with max size for better optimisation
i update the issue to study more the best way to add this
for now we works on next release, 3 isues still open
github.com/FLEXIcontent/flexicontent-cck...A%22Priority+ASAP%22
and we have an other big project, we update all flexicontent view with most moderne css approch (flex and grid) :
- unify html5 / html
- more cleaner display and responsive
- lighter css (remove not necessary css)
- more clean grid template (alignement, auto height etc)
- more clean table display
- min-max grid approch for better responsive
- more lighter and cleaner item view
need some tester to merge in master branch
github.com/FLEXIcontent/flexicontent-cck/tree/grid-beta

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: 1 year 1 month ago by micker.

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

More
1 year 1 month ago #85914 by iamrobert
Replied by iamrobert on topic Convert to WEBP?
Awesome -that bug list is coming down - could you also check that image in tab works as well?

The reason is: I updated a site yesterday with FLEXIContent master - but needed to reintegrate some code to get images in tabs to work.

So - just wondering. If I get a chance I'll test that beta.

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

More
1 year 1 month ago #85915 by micker
Replied by micker on topic Convert to WEBP?
Hello Can you explain more what is missing ?

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
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
Save