Skip to content

mux:thumbnail Antlers Tag

Generate a thumbnail image url of the video. By default, this will pick a frame from the middle of the video and render it in its original size.

antlers
<img src="{{ mux:thumbnail src="assets::video.mp4" }}">
html
<img src="https://image.mux.com/85g23gYz7NmQu02YsY81ihuod6cZMxCp017ZrfglyLCKc/thumbnail.jpg">

Customize size and frame

You can customize the width and height as well as the time point of the selected video frame used to generate the thumbnail, e.g. to render a 500px-wide image of the first frame:

antlers
<img src="{{ mux:thumbnail src="assets::video.mp4" width="500" time="0" }}">
html
<img src="https://image.mux.com/85g23gYz7NmQu02YsY81ihuod6cZMxCp017ZrfglyLCKc/thumbnail.jpg?width=500&time=0">

Unlicensed commercial plugin