How do you resize or fit a photo in the webviewer component?

The photo is uploaded from an internet link.
I found this previous post,

but I would like to know if there is a simple and immediate method (I created this app to study the behaviors of the webViewer component) that does not take advantage of external extensions. Thank you very much

2024-02-09_144448

See here:

You can also use media queries to size the image according to the webviewer size.

See here for the other options you have for object-fit