Forums

How To stop WordPress Media Uploader Thumbnail Generation (3 posts)

  1. hsatterwhite
    Member
    Posted 2 years ago #

    Is there any way to stop the Media Library uploader from generating thumbnails when you upload new images?

    I want to use this to upload images that are pre-cropped and I don't need it to waste resources with thumbnail generation.

    Thanks!

  2. Shane G
    Member
    Posted 2 years ago #

    Hi,

    Save this code in any php file and upload it in plugin directory and activate it:

    <?php
    
    function removemediabuttons()
    {
    remove_action( ‘media_buttons’, ‘media_buttons’ );
    }
    add_action(’admin_head’,'removemediabuttons’);
    ?>

    Thanks,

    Shane G.

  3. hsatterwhite
    Member
    Posted 2 years ago #

    Thanks Shane,

    But this only removes the Media Library buttons from the visual editor. It does nothing to prevent WordPress from generating thumbnails when you upload images in the Media Library.

Topic Closed

This topic has been closed to new replies.

About this Topic