image_viewer: Compute better initial zoom level (#47886)

Closes Josephs note about that.

Release Notes:

- Preview only: Fixed an issue where images in the image viewer would
not fit the viewer initially.
483e64a287Finn Evers committed on 1/28/2026, 10:29:25 PM· committed by GitHubparent9437e84
1 file changedLine totals unavailable