'Maximum image width/height limit in WordPress?

If uploading a big image, WordPress will decrease the dimension and add -scaled to the file. How can I get what is its max limit?

5000x5000 => it can't be greater than X so WordPress will make it smaller than X. How can I find the X?

There is something big_image_size_threshold but it is a filter and can't get the value. It is just for setting it.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source