This can be solved with the following hook:
add_filter('image_strip_meta', false);
See: https://developer.wordpress.org/reference/hooks/image_strip_meta/
You would have to store the code in the functions.php of your child theme or via a code snippet plugin.
When uploading, this should only happen if the original images are larger than the maximum size recommended by WordPress. This is 2560 pixels. An alternative to the above-mentioned method could therefore be to increase this maximum value so that the images are not scaled down during upload. You can do this with this, for example:
add_filter( 'big_image_size_threshold', '__return_false' );
It is possible that there are also plugins for both in the repository that you could use instead of storing the code yourself in your project. For example, there is this plugin: https://wordpress.org/plugins/scale-large-image-threshold/
Hi @threadi,
Thank you very much for your response! While that didn’t work on my website, I did figure out the issue (which dealt with my hosting provider), and I’m sure this code will be very helpful for others. 🙂