Forums

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

  1. hsatterwhite
    Member
    Posted 4 weeks 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 4 weeks 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 4 weeks 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.

Reply

You must log in to post.

About this Topic