Odd Image Thumbnail Sizes Generated by XStore

This topic has 4 replies, 2 voices, and was last updated 4 months, 2 weeks ago ago by Enduratex

  • Avatar: enduratex@gmail.com
    Enduratex
    Participant
    July 24, 2025 at 18:50

    Hello,

    I note some odd, micro-size thumbnails, are being generated for media library uploads, including sizes = 1×1.jpg and 10×5.jpg.

    Is there a purposeful, functionality reason for this, and…
    can I do anything to stop these from being generated?

    At the same time, we have no use for, and will never use…
    any of the small, square thumbnails, i.e. 100×100, 300×300.

    Ideally, I’d like to disable these 4 extra thumbnail sizes in our child theme if possible?

    Please see screenshot attached.

    Thank You!

    Files is visible for topic creator and
    support staff only.
    3 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 25, 2025 at 07:31

    Hello @Enduratex,

    Thank you for reaching out to us.

    The generation of micro-size thumbnails such as 1×1.jpg and 10×5.jpg may be related to theme or plugin functionalities, such as placeholders or lazy loading features. These sizes are not standard WordPress defaults and are likely being created by a custom function or third-party integration.

    Regarding the additional thumbnail sizes like 100×100 and 300×300, these are often registered by the WordPress to support various layout and display options. However, if you are certain that these sizes are not required for your website, it is possible to disable them.

    To prevent the generation of unwanted image sizes, you can add the following code to your child theme’s functions.php file:

    function remove_default_image_sizes($sizes) {
        unset($sizes['thumbnail']); // 150x150
        unset($sizes['medium']);    // 300x300
        unset($sizes['medium_large']); // 768x0
        unset($sizes['large']);     // 1024x1024
        unset($sizes['100x100']);   // Custom size, if registered
        unset($sizes['300x300']);   // Custom size, if registered
        return $sizes;
    }
    add_filter('intermediate_image_sizes_advanced', 'remove_default_image_sizes');
    function remove_custom_image_sizes() {
        remove_image_size('100x100');
        remove_image_size('300x300');
        remove_image_size('1x1');
        remove_image_size('10x5');
    }
    add_action('init', 'remove_custom_image_sizes');

    Please note that this will only prevent new uploads from generating these sizes. Existing images will still retain their previously generated thumbnails unless manually removed.

    We also recommend checking your active plugins and theme settings to ensure no additional image sizes are being registered elsewhere.

    If you need further assistance or would like us to review your setup in more detail, feel free to provide temporary access or additional information.

    Best Regards,
    8Theme’s Team

    Avatar: enduratex@gmail.com
    Enduratex
    Participant
    July 25, 2025 at 19:21

    Aha, excellent and thorough answer.
    Thank You very much.

    Avatar: enduratex@gmail.com
    Enduratex
    Participant
    July 26, 2025 at 00:26

    Thanks for the support! My topic “Odd Image Thumbnail Sizes Generated by XStore” has been successfully resolved.

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘Odd Image Thumbnail Sizes Generated by XStore’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.