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!
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!
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.
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.
You must log in to post.