• Many thanks for this great plugin. I tried to find the answer in QA section but I couldn’t so I have to ask it here. 😅

    WordPress generate multiple versions of the same photo and I use a plugin that also do that. So I end up with at least 8 versions (different resolutions) of the same photo. If I offload to CF now, can I disable all versions (both WP and theme extra versions) and just offload the original uploaded image? since Cloudflare handles resizing dynamically?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Anton Vanyukov

    (@vanyukov)

    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

    Thread Starter ghaiath

    (@ghaiath)

    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

    Plugin Author Anton Vanyukov

    (@vanyukov)

    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

    Thread Starter ghaiath

    (@ghaiath)

    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.

    Plugin Author Anton Vanyukov

    (@vanyukov)

    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

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Disabling extra Image Sizes When Using Cloudflare Images’ is closed to new replies.