You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fatal error: Paletter image not supported by webp #1561
Fatal error: Paletter image not supported by webp in /usr/www/users/xxxxxx/staging-xxxxxx-com/releases/20240924131521/wp-includes/class-wp-image-editor.php on line 592
Hi @adamsilverstein, the image is from my customer. I'm not sure have the permission to share it here.
When I open the image with gimp I get this message, maybe that helps? It seems to be sRGB IEC61966-2.1
Anyway, I miss exception handling in your plugin. No matter what error it is, it should simply skip image instead exit the script.
@adamsilverstein Today I've got the idea to enable image magick on the server and try it again. I can confirm with image magick been able to convert almost all images. So this happens only with GD. If image magick is enabled, wordpress switch to it automatically. Anyway, with AVIF the script simply returned "Killed", I think that is because of old version of image magick.
Only regenerated 428 of 442 images (5 failed, 9 skipped).
@chimok - I'm curious how you got a build running with GD supporting AVIF, can you share some details about your stack? My testing has all been with Imagick because I haven't gotten a local GD with AVIF support running
Unfortunately it looks like GitHub converts uploaded images - when I downloaded it I got a PNG. Can you try putting it in a zip and re-attaching, or link to an image on the web?
PHP can be compiled to include AVIF support, but this is not on by default - see https://php.watch/versions/8.1/gd-avif. In my experience, not many hosts or local hosting tools support AVIF in their GD stack, even when running php 8.1 or greater.
I just test it on my local installation, I'm using ddev for development. https://ddev.com/
Interesting. I can't use Docker or ddev, but good to hear you have a local environment for testing.
@adamsilverstein I'm running SuSE Tumbleweed. But DDEV is a docker based setup, so I don't think it really does matter? You install docker and the ddev cli, then following the guide here: https://roots.io/bedrock/docs/bedrock-with-ddev/ and you should have exactly the same setup I'm using.
@adamsilverstein I'm running SuSE Tumbleweed. But DDEV is a docker based setup, so I don't think it really does matter? You install docker and the ddev cli, then following the guide here: https://roots.io/bedrock/docs/bedrock-with-ddev/ and you should have exactly the same setup I'm using.
Thanks for the details @chimok - I'll give that a try!
Activity
adamsilverstein commentedon Sep 24, 2024
Hey @chimok - thanks for the bug report and the link to a potential solution.
If you identified the image that the error is thrown on, can you upload it here as a testing artifact?
chimok commentedon Sep 25, 2024
Hi @adamsilverstein, the image is from my customer. I'm not sure have the permission to share it here.
When I open the image with gimp I get this message, maybe that helps? It seems to be sRGB IEC61966-2.1

Anyway, I miss exception handling in your plugin. No matter what error it is, it should simply skip image instead exit the script.
chimok commentedon Sep 27, 2024
@adamsilverstein Today I've got the idea to enable image magick on the server and try it again. I can confirm with image magick been able to convert almost all images. So this happens only with GD. If image magick is enabled, wordpress switch to it automatically. Anyway, with AVIF the script simply returned "Killed", I think that is because of old version of image magick.
IlyaZha commentedon Oct 21, 2024
I have same errors with disabled image magick.
@adamsilverstein Image example:
mytory commentedon Nov 9, 2024
The same error occurs with PNG files processed through https://tinypng.com/
adamsilverstein commentedon Dec 17, 2024
@chimok - I'm curious how you got a build running with GD supporting AVIF, can you share some details about your stack? My testing has all been with Imagick because I haven't gotten a local GD with AVIF support running
adamsilverstein commentedon Dec 17, 2024
Hey @IlyaZha thanks for sharing a sample image!
Unfortunately it looks like GitHub converts uploaded images - when I downloaded it I got a PNG. Can you try putting it in a zip and re-attaching, or link to an image on the web?
chimok commentedon Jan 8, 2025
@adamsilverstein It's the version that was installed on hetzner server (https://www.hetzner.com/).
Afaik avif support ist official supported since PHP 8.1? https://www.php.net/manual/en/function.imagecreatefromavif.php
I just test it on my local installation, I'm using ddev for development. https://ddev.com/
The output
adamsilverstein commentedon Jan 8, 2025
PHP can be compiled to include AVIF support, but this is not on by default - see https://php.watch/versions/8.1/gd-avif. In my experience, not many hosts or local hosting tools support AVIF in their GD stack, even when running php 8.1 or greater.
Do you know what distribution you are running there?
chimok commentedon Jan 24, 2025
@adamsilverstein I'm running SuSE Tumbleweed. But DDEV is a docker based setup, so I don't think it really does matter? You install docker and the ddev cli, then following the guide here: https://roots.io/bedrock/docs/bedrock-with-ddev/ and you should have exactly the same setup I'm using.
adamsilverstein commentedon Jan 30, 2025
Thanks for the details @chimok - I'll give that a try!
adamsilverstein commentedon Jul 19, 2025
@chimok - can you check if the patch in #2024 fixes your issue?
westonruter commentedon Aug 15, 2025
@chimok I prepared a ZIP build of the plugin you can use to install via WP Admin > Plugins > Add Plugins > Upload Plugin.