Skip to content

VideoThumbnailSecond

Sets the second of a video that is used for the thumbnail.

imgproxy: video_thumbnail_second (alias vts) · Availability: imgproxy Pro only

use SomehowDigital\ImgProxy\Url;
use SomehowDigital\ImgProxy\Option\VideoThumbnailSecond;
$url = Url::create()
->source('https://example.com/image.jpg')
->options(new VideoThumbnailSecond(5));
$url->build();
// _/vts:5/plain/https%3A%2F%2Fexample.com%2Fimage.jpg

The option appears in the URL as vts:5.

Parameter Type Default Description
$second int required Timestamp in seconds, 0 or more.
  • Negative values throw an InvalidArgumentException.

imgproxy reference