Jump to content

Recommended Posts

Posted

Hi,

I have a question regarding WebP support that I would like to clarify.

I added WebP to my allowed image extensions, and while uploads work fine and the original images display correctly, I'm seeing "not a supported image type" errors when ProcessWire tries to generate thumbnails or variations from WebP source files.

After some digging, I found Ryan's blog post from 2019 which says:
> "WEBP is purely an output format, not an input format... PNG and/or JPG images should still be the standard for any images you upload to your site."

So it sounds like this is expected behaviour - WebP is designed for output (converting JPG/PNG → WebP for delivery) rather than input (uploading WebP and resizing it).

Just wanted to confirm:

  • Is this still the case in 2026?
  • Is there any plan to support WebP as a source format in the future?
  • For those who do allow WebP uploads - do you just accept that variations won't be generated?


For now, I'm working around it by skipping resize attempts on WebP source images and using the originals, which works fine but results in larger file transfers for thumbnails.

Thanks!
Peter

Posted

hi,

i guess it may come from the fact that creating a vign (the first variation pw creates when tou upload an image) is not that simple (not possible on a server that only has gd and not a recent imagick version) that would be a not very universal feature so far

have a nice day 

  • Like 1
  • 6 months later...
Posted

If the issue is specifically using WebP as the source for variations, another option is to move that processing outside ProcessWire rather than converting uploads back to JPEG. imgproxy supports WebP as both an input and output format, so it can generate resized variants directly from the WebP source:https://docs.imgproxy.net/latest/image_formats_support The downside is adding another service, so I'd only consider this if external image processing already makes sense for the setup.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...