• 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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    Thread Starter hsatterwhite

    (@hsatterwhite)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How To stop WordPress Media Uploader Thumbnail Generation’ is closed to new replies.