The WPFolks app is out on iPhone and Android. Free, no ads. Download on the App Store Get it on Google Play
Skip to main content
Login Join
Snippet · PHP

Disable Automatic Big Image Resizing in WordPress

Shared by Sumit Javia | Senior WordPress Developer · May 9, 2026 · @big_image_size_threshold

4 copies
68 views
Back to Snippets

This snippet disables WordPress automatic large image scaling by removing the big image size threshold. It prevents WordPress from generating resized “-scaled” versions of uploaded images, allowing original high-resolution images to remain unchanged.

// Filter function to prevent wp resize for big size image
add_filter( 'big_image_size_threshold', '__return_false' );
Know a different way to do this? Add your approach as a variation so folks can compare them side by side.
Submit a variation

0 comments