• Resolved Roice

    (@roicecz)


    I accidentally discovered that the plugin, without any information or option, added a new size of generated images 300×100 (cmplz_banner_image). This generates an extreme amount of images that are not used for anything and only take up expensive space on the server. Expensive services for image optimization etc.. When I checked the projects where the plugin is deployed, for one project it is hundreds or thousands of files per month. Files take up tens to hundreds of megabytes. Please let me know how to disable this and how to simply remove the images that have been nonsensically generated in this way. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support fritsiub

    (@fritsiub)

    Hi Roicecz,

    You can use the following snippet as an MU Plugin (place it in a .php file and upload it to the folder /wp-content/mu-plugins/, or remove the first <?php tag and then put it in functions.php of your active theme) to prevent this behaviour. It will prevent the Complianz resolution from being added. However, note that in themes like Twenty Twenty-Four, other image sizes may still be added (which are not controlled by Complianz).

    <?php
    function remove_cmplz_banner_image()
    {
    remove_image_size('cmplz_banner_image');
    }
    add_action('admin_init', 'remove_cmplz_banner_image', 20);

    I hope this helps!

    Thread Starter Roice

    (@roicecz)

    Hello,
    thanks for the help, everything seems to be working as it should.
    It’s a shame that such a fundamental intervention in WordPress settings is not communicated anywhere and it is not possible to turn off this unpleasant behavior directly from the plugin settings.
    We are a small magazine with a maximum of 5 published articles per day. The repair only took half a day. For larger websites, it must be crazy to find such a mistake and, God forbid, maybe after a year or two. I would take a week off.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to stop cmplz_banner_image generation’ is closed to new replies.