Disable big image scaling
Stop WordPress shrinking large uploads to 2560 pixels and renaming them with -scaled, so the original file stays as the full size.
// Keep large uploads at their original size instead of scaling them to 2560px.
add_filter( 'big_image_size_threshold', '__return_false' );
What it does
Since WordPress 5.3, any uploaded image wider or taller than 2560 pixels is scaled down, and the file name gets -scaled added. Photographers and shops that need full-resolution images often don't want that.
This snippet turns the threshold off, so new uploads keep their original size. WordPress still creates the smaller sizes used in srcset.
Good to know
- It only affects new uploads. Images you uploaded before stay as they are.
- Full-size photos from phones and cameras can be several megabytes. Compress them before uploading.