Webp and Avif

bcx

Verified User
Joined
Dec 11, 2015
Messages
77
So i bumped into this https://mattplugins.com/products/webp-converter-for-media-pro/ website
Until yesterday never heard about the Avif format.

I'm running wordpress on openlitespeed.

Is their no way to install something on wordpress and let your own server convert jpg files to webp and avif formats?
My site has not photo galleries yet, but soon we will publish about 200 to 1000 images per event. All with their own sizes.

Now my libary has 885 items. But in the free plugin of mattsplugins, it says 74766 files are in the upload folder. Probably all the different size too.

And their prices are quite heavy for 2 M pictures its already 500 a year.
So would it not be possible to convert the images on your own site (for example during the night when there is almost no traffic anyway)
 
I found this article too, but if i'm not mistaking they only do webp. And are limited in amount of files.
One blog website has over 1M images.

And sport website has 64 000 images, which are only info / article images in different screen sizes.

I'm just wondering if there is nothing inside your server that you can install. Say folder wp-content/uploads convert all images.
And with httaccess orso convert images to the right supported browser format.
 
If you use Litespeed OS, you can use the wp litespeed plugin with integrated image optimizer / webp converter.
Dont forget, that WP produces several different sized images per uploaded image. You may want to restrict this behavious to only 1 or 2 sizes.
 
If you use Litespeed OS, you can use the wp litespeed plugin with integrated image optimizer / webp converter.
Dont forget, that WP produces several different sized images per uploaded image. You may want to restrict this behavious to only 1 or 2 sizes.
Yup i know but it limited to only 500 pics a day. Todo them all is above my budget.
And if I'm not mistaking it only does webp and not both incl. avif.
 
Actually it's not a big deal to convert images on a server side. It can be done as a crontask, and then you might use mod_rewrite for serving them.

In case you have nginx: https://www.igvita.com/2013/05/01/deploying-webp-via-accept-content-negotiation/
Search in Internet for other web-servers.
Hi there!

I'm using OpenLiteSpeed. I'm totally not great with coding. I try, but I'm just not smart enough :)
But I'm able to manage my own dedicated server so far, so that's good.

I found this plugin on github, that seems to do the trick. But on my test stage website site I have the same issue like here: https://github.com/ainsleyclark/squidge/issues/14

https://github.com/ainsleyclark/squidge#squidge


And yes I believe it must be possible, especially if you have an unmanaged dedicated server, there should be something outhere to run this on your own server and present the supported format into the user browser. jpg, png as backfill and, webp or avif, for those browsers that support it.
 
I found this plugin on github, that seems to do the trick. But on my test stage website site I have the same issue like here: https://github.com/ainsleyclark/squidge/issues/14

I don't use WordPress and my expertise in it is limited to installation only. But I can configure webservers to run WordPress.

Once I've already configured the same thing for a customer of mine. I haven't found the exact description on how they converted images in my notes, but the NGINX part was configured the way it's mentioned in the article I've sent in the previous reply. The same thing can be found for OpenLiteSpeed I believe. If not, then you might check mod_rewrite rules for Apache. They might work for OLS too.

I've shared the idea. So it's up to you to dig into details of ImageMagick as suggested @Zhenyapan

Or probably somebody else has a ready solution for WP and OpenLiteSpeed and is ready to share it.
 
Yup, i'm digging into this for sure. In case I found a proper solution I will post it here for anyone else that is maybe looking for this.
There are dozens of services but I check their prices it will cost me around $10 to 16K for only the pictures on the server right now.. And mostly you need to keep the servers to keep the converted images. If you stop, you lose all those conventions too.

Thats what I received when I contacted them.

Silly that Wordpress doesn't has this build in, they only just now starting to embrace webp (upload only) still no conversion.
While its one of the most used cms on our planet.
 
Back
Top