Hi @ghaiath,
Yes, you can disable the thumbnail generation (the plugin also offers this option). However, please keep in mind that whenever you insert a new image, that does not have an image size generated, to a post – the original image size will be added. It’s won’t be an issue as long as you are using the plugin. However, if you ever decide to roll back, you will need to re-genrate the missing attachment and manually change the images in the posts to make sure they are properly optimized.
Best regards,
Anton
Thanks Anton,
Today, I tried the option “Disable WordPress image sizes“. It seems to be working fine with only jpg or png. When I tried to upload webp images, then I got:
“The web server cannot generate responsive image sizes for this image. Convert it to JPEG or PNG before uploading.”
Is there any extra steps I have to do?
Thanks
Hi @ghaiath,
It looks like your server is missing the required webp extensions. Please go to Tools – Site Health in your wp-admin and make sure all the required extensions are installed for Imagick and/or GD.
Best regards,
Anton
Thanks again Anton,
My bad, I didn’t explain the issue correctly. 😅
I can upload both WebP and AVIF just fine. But I get this error only when I turn on the option “Disable WordPress image sizes“.
* “Disable WordPress image sizes“ off –> I can upload webP and AVIF.
* “Disable WordPress image sizes“ on –> I get the error: “The web server cannot generate responsive image sizes for this image. Convert it to JPEG or PNG before uploading.”
I also checked the extensions installed. I’m using Hostinger and I can see that thy support and enabled WebP and AVIF.
“GD supported file formatsGIF, JPEG, PNG, WebP, BMP, AVIF, XPM”
Even ImageMagick supported file formats: “… AVIF, WebP”.
Thanks in advance.
Hi @ghaiath,
Sorry for the delay in my reply. I was able to figure this out. I’ve added a patch to the upcoming version. If you want to adjust this on your version, you need to remove this filter:
add_filter( 'wp_image_editors', '__return_empty_array' );
Please see this reference: https://github.com/av3nger/cf-images/commit/7fad2475e27888640d216c13621013e9baa74f08
Best regards,
Anton