[ BLOG ]Practical Guide · 4 min read

How to Create an HTML Video Poster Image on Mac

Published · Updated

SourceVideo
ExportWebP Poster

Save a video’s first frame as a WebP image with ExportForWeb, then set it as the HTML video poster. This guide covers the export steps, HTML, and loading settings.

ExportForWeb video settings showing MP4 and WebM formats, output size, and the optional WebP thumbnail
[ INSIDE THE APP ]Choose WebM or MP4, set the output size, and add a WebP thumbnail if needed.

What the video poster attribute does

Add a poster by giving the HTML <video> element the image URL:

<video controls poster="product-tour-poster.webp">
  <source src="product-tour.webm" type="video/webm" />
  <source src="product-tour.mp4" type="video/mp4" />
</video>

The MDN video reference says the poster is shown while video data is unavailable. Without one, the player has nothing to display until its first frame becomes available. The HTML Standard describes the poster as a representative frame—typically one of the first non-blank frames—that gives the visitor an idea of the video.

A poster is a separate image request, not a frame embedded into the page. That distinction lets you show a lightweight preview while controlling how much of the much larger video should load.

Check the first frame

ExportForWeb uses the video’s first frame for the poster. Check the source video before exporting:

  • a fade from black or white;
  • an editing slate, cursor setup, or recording countdown;
  • a half-drawn interface state;
  • small text that becomes unreadable at the player’s displayed size;
  • a frame that does not explain what the visitor is about to watch.

If you want a different frame, extract it with a video editor or frame-grabbing tool. ExportForWeb uses the first frame; it does not offer a frame picker. You can also revise the opening before exporting.

How to create a WebP video poster on Mac

  1. Open ExportForWeb and choose a destination folder.
  2. Drop in the prepared source video.
  3. Select WebM or MP4 for the video export.
  4. Enable the optional WebP thumbnail.
  5. Run the export, then reveal the completed files in Finder.
  6. Open the WebP and confirm that it matches the video’s first frame and aspect ratio.

The source remains unchanged. If you only need a poster for an existing delivery file, use the WebP and keep your existing video.

Add the poster to your HTML

For a click-to-play video, include dimensions, a poster, source types, and a fallback link:

<video
  controls
  playsinline
  preload="metadata"
  poster="/media/product-tour-poster.webp"
  width="1280"
  height="720"
>
  <source src="/media/product-tour.webm" type="video/webm" />
  <source src="/media/product-tour.mp4" type="video/mp4" />
  <a href="/media/product-tour.mp4">Download the product tour</a>
</video>

The width and height reserve the player’s aspect ratio before video metadata arrives. This example prefers WebM; put your preferred usable source first. For the format reasoning behind that order, read WebM vs MP4 for the web.

Choose loading behavior by placement

The preload attribute is a browser hint, not a command. MDN documents three useful values: none, metadata, and auto. Match the hint to the likelihood that a visitor will play the video.

PlacementStarting pointWhy
Below-the-fold case studypreload="none"Avoid fetching video data before interest
Visible click-to-play demopreload="metadata"Fetch limited information before playback
Muted autoplay loopTest the real autoplay pathAutoplay takes precedence over preload

If the video is the large hero element, its poster can become the page’s Largest Contentful Paint candidate. The web.dev lazy-loading video guide recommends preloading an LCP poster with high fetch priority because fetchpriority cannot be placed directly on the poster attribute:

<link
  rel="preload"
  as="image"
  href="/media/product-tour-poster.webp"
  type="image/webp"
  fetchpriority="high"
/>

Preload selectively. Use this for a measured above-the-fold poster, not every video preview. Competing high-priority requests can make the page slower.

Keep the poster and video in the same frame

The poster is fitted into the video element’s display area. Use matching aspect ratios so the image does not appear cropped or letterboxed before playback. A small CSS baseline is usually enough:

.product-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #171717;
  object-fit: cover;
}

Only use object-fit: cover when cropping the edges is acceptable. For screen recordings and interface demos, preserving the entire frame with contain may be safer.

Verify the result on the real page

  1. Load the page with the browser network panel open and confirm the WebP returns successfully.
  2. Throttle the connection and verify that the player shows the poster before playback.
  3. Play the video and watch for a visible jump between poster and first frame.
  4. Test the narrowest layout to catch unwanted cropping or unreadable details.
  5. Compare none and metadata using actual transferred bytes, not assumptions.

For player setup and deployment checks, see how to export video for the web or the web video compression guide.