black-bits/preview-thumbnails

Preview Thumbnail Builder for the Laravel Framework

0.0.1 2017-09-19 21:20 UTC

This package is auto-updated.

Last update: 2024-10-29 05:22:23 UTC


README

Latest Version on Packagist Software License Build Status Total Downloads

Preview Thumbnail Builder for the Laravel Framework

How to use

// initialize test data
$files = [
        '1.jpg',
        '2.jpg',
        '3.jpg',
];

$timespan = 5; // in seconds
// option 1
$previewThumbnails = new \BlackBits\PreviewThumbnails\PreviewThumbnails($timespan);
return $previewThumbnails->getVTT($files);
// option 2
$previewThumbnails = new \BlackBits\PreviewThumbnails\PreviewThumbnails();
$previewThumbnails->setTimespan($timespan);
return $previewThumbnails->getVTT($files);
// option 3
$previewThumbnails = new \BlackBits\PreviewThumbnails\PreviewThumbnails();
return $previewThumbnails->setTimespan($timespan)->getVTT($files);
// option 4
return PreviewThumbnails::getVTT($files);
// option 5
return PreviewThumbnails::setTimespan($timespan)->getVTT($files);