Problem with Add media option

I have a question regarding the image ratio when using the “add media” button.
I’m trying to put the “add media” button on my project. But when I use it, it compresses my photo to fill all the space (image on the left).

Is there any way to keep the original ratio of the photo?
Like what the media library option does (image on the right).

I made a test case for the gallery input. I think it uses fit2rect or something like that to constrain the dimensions.

1 Like