WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] How do I disable auto creation of thumbnails?

[Resolved] How do I disable auto creation of thumbnails?

  • Basically I use the wordpress image uploader as an uploader to upload into an /avatars folder. All avatars are the same size ALWAYS so I have no use for auto thumbnail creation in my images folder. They are simply wastes of space.

    How can I disable the auto creation of thumbnails, or at least switch it off by default?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Samuel Wood (Otto)
    WordPress.org Tech Dude

    @otto42

    Add this to your theme’s functions.php file:

    function change_image_size_limit() {
    return 0;
    }
    add_filter('wp_thumbnail_creation_size_limit','change_image_size_limit');

    The thumbnail creation functions have a size limit on images. Images bigger than 3 megapixels don’t get thumbnails made for them. This bit of code changes that limit to zero, so that no images get thumbnails made for them.

    Just the ticket. Cheers Otto!

    Hang on. If I do this my RSS feeds stop working…

    Forget it. Fixed.

    pulpfriction
    Member

    @pulpfriction

    and what if the theme I’m using doesnt have a functions.php page…as is the case with the one I’m using

    Create one:

    <?php
    
    ?>

    There you go. 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] How do I disable auto creation of thumbnails?’ is closed to new replies.