• Resolved Pete

    (@perthmetro)


    How do I find out where the extra (useless) thumbnails are being generated from? Is there some function I can run that will tell me what plugin creates these little nuisances?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Do you know which folder the images are generated in? If so, FTP into that folder and keep an eye on it.
    Then deactivate all of your plugins and re-upload an image. Do the (unnecessary) thumbnails persist? If so that’s an issue with your theme.

    Thread Starter Pete

    (@perthmetro)

    “Then deactivate all of your plugins… “

    I’m afraid that’s out of the question, I have 50 plugins and it’s a live site. I was hoping there’s a plugin or function that could tell me what other plugins fire off an add_image_size function. I guess i’ll just do a text search through each plugin’s code to find it 🙁

    Alex

    (@hempsworth)

    This article should help you: http://andorwp.com/add-remove-change-and-regenerate-image-sizes-in-wordpress/

    WordPress creates three default images sizes for each upload, but your theme and/or plugins may be generating more. Once you know the sizes you may want to disable, the following code (from that article) will be able to remove them:

    function remove_image_sizes() {
        if ( function_exists( 'add_image_size' ) ) { 
            remove_image_size( 'custom-image-size1');
            remove_image_size( 'custom-image-size2');
         }
    }
    add_action('after_setup_theme', 'remove_image_sizes');

    Hope this helps!

    Thread Starter Pete

    (@perthmetro)

    Thanks, I just need to find the custom image size name. That’s the hard bit!

    Alex

    (@hempsworth)

    I haven’t personally used the plugin, but I think this will allow you to see all of the image sizes listed:

    https://wordpress.org/plugins/display-all-image-sizes/

    Thread Starter Pete

    (@perthmetro)

    Thanks, it looks promising!

    Thread Starter Pete

    (@perthmetro)

    This looks interesting too…
    https://wordpress.org/plugins/image-sizes-panel/

    Thread Starter Pete

    (@perthmetro)

    Found it thanks!

    Alex

    (@hempsworth)

    Brilliant, glad you managed to sort it out finally!

    If your question has been answered, we would love if you would mark this topic as resolved in the left hand sidebar. This helps our volunteers find the topics that still need attention and more people will get helped, possibly like you did 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How do I find out where the extra (useless) thumbnails are being generated from?’ is closed to new replies.