ShortPixel integration - should it create WebP variants for images?
Hello!
As far as I can see in the results of the integration with ShortPixel, WebP variants are not created for Brizy images. Is there any way to enable this option?
Regards,
Roman
-
Hi Roman,
At the moment, Brizy does not recognize the webp image format and we are still working on this feature.
0 -
Thanks for your reply!
As far as I understand, this question has been raised for a long time and there is no solution yet and, apparently, no timeline for when this will be implemented.But I would like to implement this with current available resources.
LiteSpeed Cache Wordpress Plugin (LSCWP) can replace pictures used by Brizy dinamically.
But at the moment there are 2 points that do not allow this to be done easily:
1) integration with ShortPixel does not create WebP images in Brizy folders
2) Brizy approach to folders namesIf the point 1 I can handle through a separate generation of these pictures using the custom development based on ShortPixel API, but point 2 cannot be solved without changing the approach to the folders names.
What about folders names? -
When analyzing the LSCWP logs, I see that folder name like ‘iW=131&iH=131&oX=0&oY=0&cW=131&cH=131′ does not allow the plugin to perform the replacement (notice where it looks for the file - how the file path is truncated):09/13/21 13:33:20.936 [XX.XX.139.226:54562 1 piJ] [Media] webp replacing: https://XX.com/wp-content/uploads/brizy/308/assets/images/iW=131&iH=131&oX=0&oY=0&cW=131&cH=131/optimized/Image2.png 09/13/21 13:33:20.936 [XX.XX.139.226:54562 1 piJ] [Util] file not exist: /home/XX/webapps/wp-test-01/wp-content/uploads/brizy/308/assets/images/iW=131& 09/13/21 13:33:20.936 [XX.XX.139.226:54562 1 piJ] [Media] -no file, bypassed
The answer from the LSCWP support on this issue (https://wordpress.org/support/topic/folder-names-and-webp/ ):
Hi,
Yes , this
&in URL will make LSCWP crazy.on my test , if I insert image like
&xxx/xxx.jpgin WP editor , it automatically transoformed into&, so I guess even wordpress itself doesn’t like this kind of directory nameand per RFC 3986,
&is reserved URI character for delimiting characters , like query string , I would assume it is not really suitable to use it on in directory name for a website ?Is this folders name approach can be changed to reflect best practices and be comparable with other solutions?
0 -
Hi,
these names are dynamically generated based on images which are also dynamically generated regardless of size. Now we are working hard to recreate the image processing functionality in Brizy and after we implement this, you will be able to use the solution proposed by you because the images will work the same as in WordPress. But, unfortunately, we don't have an ETA for this :/
0
Please sign in to leave a comment.
Comments
3 comments