• Hi, I am offloading my image files to wasbabi but have noticed that webp and heic images and any related thumbnails that have been created by image optimization plugins are not being deleted from our server after being offloaded. Is there a way we can tell WP Offload Media to do this? I noticed previous support questions which mentioned using the tweaks file which I have installed – but not sure where or what to change. Thanks for your assistance.

Viewing 1 replies (of 1 total)
  • Plugin Support Delicious Brains Support

    (@dbisupport)

    Hi @sarahgb,

    WP Offload Media Support Team here. Thanks for reaching out with your query! We would be happy to assist.

    By default, WordPress only allows certain file types to be uploaded to the Media Library. Since WP Offload Media works closely with the Media Library, only those file types that are successfully uploaded will be offloaded by the plugin.

    https://deliciousbrains.com/wp-offload-media/doc/developer-guide/#automatic-offload

    Can you kindly confirm if the WebP and HEIC images were successfully offloaded? The plugin only removes files that were successfully offloaded to your bucket. If they weren’t offloaded, you may try using a plugin(s) that adds support to those file types.

    Another alternative is using the as3cf_allowed_mime_types filter. Below is a sample code that you can add to your custom theme’s functions.php file, add to a custom plugin, or add via plugin like Code Snippets.

    add_filter( 'as3cf_allowed_mime_types', 'custom_allowed_mime_types', 10, 1 );
    function custom_allowed_mime_types( $types ) { // Allow offload for webp and heic
    $types['webp'] = 'image/webp';
    $types['heic'] = 'image/heic';
    return $types;
    }

    Please let us know how it goes for you.

Viewing 1 replies (of 1 total)
  • The topic ‘How to delete webp and heic images after upload’ is closed to new replies.