Web implementation
Fix a video that looks stretched on a webpage
Find whether distorted faces or slides come from the export or the page layout. Compare natural sizing, contain and cover with a worked aspect-ratio example.
01
Distinguish stretching from cropping and empty space
When a customer looks unusually wide or a circular product detail becomes oval, check whether the video is being stretched. Cropping removes part of the picture while preserving its proportions. Letterboxing or pillarboxing adds unused space. These problems need different decisions.
Open the exact delivery file independently and pause on a frame with a recognisable shape, such as a circular icon or a face. Pause the webpage on that same frame. If the file itself is distorted, send the source and export comparison to the finishing editor. A CSS change cannot restore geometry already baked into the file.
If only the webpage is distorted, capture its viewport width and player dimensions. Check both a narrow phone layout and the wider page. A fixed height that worked in a desktop mock-up can become inappropriate when the width shrinks.
02
Calculate the expected display shape
Hypothetical worked example: a 1920 × 1080 interview is displayed in a 360 × 360 square. Its source ratio is 16:9. At a width of 360 pixels, preserving the whole frame requires a height of 360 × 1080 ÷ 1920 = 202.5 pixels.
Filling the square by stretching instead scales the width by 0.1875 and the height by approximately 0.3333. Those unequal factors explain the taller faces. Increasing the export resolution would not solve that mismatch.
Containing the whole frame in the square leaves 157.5 pixels of unused vertical space in total. Covering the square instead preserves proportions but crops the sides: at a displayed height of 360, the uncropped picture is 640 pixels wide. A centred crop removes 140 displayed pixels from each side.
These calculations describe this example, not a rule that all video needs black bars. The team must decide whether the surrounding layout can change or whether an intentional alternative edit is needed.
03
Give the developer the correct fitting decision
The MDN object-fit reference distinguishes the relevant treatments for native video elements: contain retains the complete image and its proportions; cover preserves proportions while clipping excess picture; fill can stretch the image to the box.
For a normal full-width native player, proportionate sizing is often the clearest brief. The developer can test width: 100%; height: auto; with the element's intrinsic dimensions. If a fixed presentation box is required, ask for a deliberate fitting rule rather than independently forcing both dimensions.
object-fit does not control the video inside a third-party iframe. For an embedded provider player, inspect the wrapper's dimensions and the provider's supported responsive embed settings. Changing the iframe's outer shape is different from changing its internal media treatment.
MDN's aspect-ratio guide explains reserving a proportionate box. Check the actual computed width and height after other styles apply; a preferred ratio alone is not proof that the layout honours it.
04
Choose whether the whole frame is necessary
For a screen demonstration, covering a square may remove a menu, warning or result near an edge. For an interview, it may cut off the second participant. Review the whole passage before deciding that a centred crop is harmless.
If the page can accommodate a wider player, preserve the original frame. If the destination needs a different shape, brief an intentional composition and inspect the result. The slide-heavy webinar guide helps decide when essential screen detail makes a crop unsuitable.
Anjin Media's composition output documentation describes requested output aspects. That is an export choice; it does not configure your website's player CSS. Keep the approved output aspect and the webpage presentation decision together in the delivery note.
05
Accept the page, including its controls
Ask the developer to return a comparison at the narrowest supported layout and a representative desktop width. Verify the same reference shape in both, then watch the complete clip for cropped captions, controls and supporting details. Test fullscreen as a separate state.
Check the untouched player as well as playback. A correctly proportioned poster can mask a distorted video after Play, and the reverse can also occur. Resize the page and rotate a phone-sized viewport to expose fixed dimensions that only work in one orientation.
The acceptance note should state the chosen treatment, the tested sizes and any intentional crop. “No stretched faces; full demonstration visible at 360-pixel player width” is reviewable. “Make responsive” leaves the content decision unresolved. If the picture turns sideways rather than stretching, use the orientation diagnosis instead.
About this field note
Written by Anjin Media's editorial team from hands-on work with long-form video, cut plans and searchable archives. Product details are checked against the documented platform behaviour before publication.
