# Choose how a Surface Media image or video fits its box

URL: https://www.panoramr.com/help/using-the-media-fit-control-for-embedded-content
Category: Hotspots and media
Keywords: media fit, object fit, contain, cover, fill, stretch, crop, aspect ratio, squashed image, picture cut off, video fit, embedded content
Last checked: 2026-10-22

Media Fit sets whether a Surface Media image or video file shows whole, cropped to fill its box or stretched. It does nothing for YouTube, Vimeo or web pages.

**Media Fit** decides how an image or a video file sits inside the box of a Surface Media hotspot. It has three choices: **Contain (Keep Aspect Ratio)** (the default), **Cover (Crop to Fill)** and **Fill (Stretch)**. The list is on screen for every **Content Type**, but it only changes an **Image** or a **Video** that is a file. It does nothing for a YouTube or Vimeo video, an **iFrame / Website** or **Rich Text**. This page lists the field and its three choices.

**Who can use it.** The owner, and Editors and Admins by default. They need the **Hotspots** tab and the **Panoramas** tab, because saving goes through the panorama. No plan is needed, except that uploading a video file needs a plan that allows it ([Video in a tour](https://www.panoramr.com/help/embedding-video-youtube-vimeo-inside-360-tours)). Surface Media is added in the **Advanced** view.

**When visitors get a change.** There is no Save button. The change is saved half a second later and, unless Draft Workflows is on, it refreshes the stored copy that visitors get ([my changes do not show](https://www.panoramr.com/help/when-do-changes-show)).

## The setting

### Media Fit

Choose how the media sits in its box.

**Where:** **Hotspots** tab > choose the scene and click the Surface Media hotspot > **Hotspot Properties** > **Media Fit**, below **Dimensions (px)**. To make a Surface Media hotspot, click **Add Surface Media** (in the **Advanced** view) and then click the picture ([Surface Media](https://www.panoramr.com/help/surface-media) has the rest). Check **Content Type** first: **Image**, or **Video** with a video file. Click **Browse** to pick a file from your Asset Library, or type an address in **Media Source**: a recognized address sets the type for you.
**Default:** **Contain (Keep Aspect Ratio)**
**What it does:** Sets how the picture or video file is fitted to the box. **Dimensions (px)** sets the box: the W and H sliders run from 50 to 2000 pixels. Switch on the link icon beside the label to keep the box's proportions while you move one slider. If the box has the same shape as the picture, the three choices look the same.
**What visitors see:** The picture or video as the three choices below describe.
**Needs:** An **Image**, or a **Video** that is a file. A video address that contains `youtube`, `youtu.be` or `vimeo` is shown in a frame sized to the box, and the setting does nothing for it.
**Related:** [Surface Media](https://www.panoramr.com/help/surface-media).

### Contain (Keep Aspect Ratio)

Show the whole picture or video, never cropped or stretched.

**Where:** **Media Fit** list.
**Default:** This is the default.
**What it does:** Fits the whole media inside the box and keeps its proportions.
**What visitors see:** The whole picture or video. If the box has a different shape, there is empty space at the sides or above and below.
**Related:** **Cover (Crop to Fill)**.

### Cover (Crop to Fill)

Fill the box and keep the proportions.

**Where:** **Media Fit** list.
**Default:** Not the default.
**What it does:** Scales the media until it covers the box; whatever does not fit is cropped.
**What visitors see:** A filled box, with part of the picture cut off.
**Related:** **Contain (Keep Aspect Ratio)**.

### Fill (Stretch)

Stretch the media to the box in both directions.

**Where:** **Media Fit** list.
**Default:** Not the default.
**What it does:** Makes the media exactly the box's size, whatever its proportions.
**What visitors see:** A filled box, and a picture that can look squashed or stretched.
**Related:** **Contain (Keep Aspect Ratio)**.

## Troubleshooting

**Media Fit does nothing.** **Content Type** is **iFrame / Website** or **Rich Text**, or the **Video** address is a YouTube or Vimeo link. Panoramr shows a frame for any video address that contains `youtube`, `youtu.be` or `vimeo`, and sizes the frame to the box. To use Media Fit, use a video file instead: an `.mp4` in your Asset Library, picked with **Browse**.

**There are empty bars around my picture.** That is Contain. Change **Dimensions (px)** to the picture's shape, or choose **Cover (Crop to Fill)**.

**Part of my picture is cut off.** That is Cover. Choose **Contain (Keep Aspect Ratio)**, or change **Dimensions (px)** to the picture's shape.

**My picture looks squashed.** That is Fill. Choose **Contain (Keep Aspect Ratio)** or **Cover (Crop to Fill)**.
