Jump to content

WebP and reprocessing images


asigno
 Share

Recommended Posts

I wouldn’t be so eager to convert everything. First of all, there are still users who cannot see WebP images at all and switching over to WebP without keeping all previous images as fall-back would mean they don’t see any images at all. 

Second, the format itself doesn’t guarantee better images, especially if the WebP version is generated from an already compressed or optimized source image. 

Link to comment
Share on other sites

Posted (edited)
7 hours ago, asigno said:

Thanks, I was hoping for an automated method which would also update all the links in the forum.

AFAIK they've been a little vague about how support for WebP images works in 4.6.
A search for WebP in the AdminCP live search brings up no results. The quality setting is mentioned in Image Settings.

My server has support for WebP but if I go to upload a Logo in the theme settings it doesn't mention WebP at all, just gif, jpeg, jpe, jpg, png. Same if I go to upload a profile cover photo.

If I try uploading a WebP image, I get a message saying "Allowed file extensions are: gif, jpeg, jpe, jpg, png", even though I have Allowed File Types set to the default of 'All Files', Allowed File Extensions set to 'No Restriction', ImageMagick and GD2 installed with their PHP extensions.

I was interested to see how this would work because despite being around for a decade or so, it's only now that modern browsers support WebP, only Safari on MacOS has some remaining caveats. Using a picture html element is recommended to provide fallback PNG/JPEG etc images, but it gets tricky with background element images.

You might be better with an on-the-fly type service like Cloudinary or Cloudflare's offering at the moment, they have a free tier.

Edited by The Old Man
Link to comment
Share on other sites

Thanks Nathan. I rechecked my server and it seems its enabled for GD2 only. I have a CPanel and CentOS 7 based server and apparently need to recompile Imagick with the WebP extension and latest version of libwebp. I had Imagick 7 and WebP support before my recent container move last week but also Imagick 6 kept reinstalling itself and taking over.

Updated today:

How to enable the webp image format for use with ImageMagick on cPanel

 

Link to comment
Share on other sites

On 7/1/2021 at 4:04 PM, opentype said:

I wouldn’t be so eager to convert everything. First of all, there are still users who cannot see WebP images at all and switching over to WebP without keeping all previous images as fall-back would mean they don’t see any images at all. 

Second, the format itself doesn’t guarantee better images, especially if the WebP version is generated from an already compressed or optimized source image. 

True, but it's highly likely that those users are making up less than 1% of my traffic.

I wasn't looking to use WebP to give better images, I want to use WebP as from my other sites I've seen it reduce image size on average by about 30% with no trade off on image quality. This made a noticable improvement to page speed and also reduced my bandwidth.

I was hoping, well assumed, that the IPB implementation would support the actual serving and processing of the images just like many Wordpress plugins do. It shoudln't be reliant on a user to upload a WebP image, as who the hell would do that. There's free Wordpress extensions which dyamically process and serve WebP images only to browsers which support the format. I'm puzzled why this type of support isn't included in a paid platform.

Link to comment
Share on other sites

  • 2 weeks later...

Yeah I was hoping to see images being served webp based on the user's browser to help with image loading speed. Its nice you can upload them now though, but I don't see any functionality outside of accepting webp images. I was doing this with mod_pagespeed but ran into some theme caching issues so I disabled it.

Link to comment
Share on other sites

  • 4 weeks later...

We also have WebP support by php gd but still not working when adding that type of image.

image.png.22b67eb30f1a56b24f91f57f8eebfc6c.png

When adding image like this...

image.thumb.png.9f816c2fb99cc7461d81caf0deadb95d.png

Get the same error like other users.

image.png.ab793a637a1ac1a2f29021eaec730ecb.png

 

Also trying to install all packets and fix it by my self but still no luck.

php 7,2,,,,  gd and imageMagick  installed.

 

On ACP Image settings when set ImageMagick i can upload .webp files as file but not as image. 

image.png.0c6281eb74684cd4cef2beb957b89eea.png

 

 

Have u ever met such a problem like this ? upgrade to 4.6 do nothing to us.

 

Greetings.

 

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...