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

3 copies
33 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