Change the 2560 px limit WordPress uses to scale down huge uploaded photos, for example to 1920 px.
add_filter( 'big_image_size_threshold', function (): int {
return 1920;
} );
Always add PHP to a staging site first, or have FTP or file manager access ready, so you can undo it if something goes wrong.
When you upload a photo wider or taller than 2560 pixels, WordPress saves a scaled-down copy and uses that as the “full” image. If your site never shows images that large, a lower limit saves a lot of storage and bandwidth.
The big_image_size_threshold filter sets the maximum width or height of the image WordPress uses as the full size. Images larger than that are scaled down on upload and saved with -scaled in the name. The untouched original is kept on disk as a backup.
false turns scaling off completely, which keeps huge originals in use. That’s rarely what you want.Upload a photo wider than 1920 px. In the Media Library, its dimensions should show a width of 1920 px.