PHPackages                             pawlox/video-thumbnail - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. pawlox/video-thumbnail

ActiveLibrary[Image &amp; Media](/categories/media)

pawlox/video-thumbnail
======================

Video thumbnails

v5.2.0(1y ago)24236.3k↓11.2%17[1 issues](https://github.com/pawlox/video-thumbnail/issues)[1 PRs](https://github.com/pawlox/video-thumbnail/pulls)1MITPHPPHP &gt;=8.0

Since Aug 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/pawlox/video-thumbnail)[ Packagist](https://packagist.org/packages/pawlox/video-thumbnail)[ Fund](https://paypal.me/pawlox)[ RSS](/packages/pawlox-video-thumbnail/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (4)Versions (9)Used By (1)

Video Thumbnail
---------------

[](#video-thumbnail)

Simple package for generating video thumbnail in Laravel using FFMpeg.

Support my work
---------------

[](#support-my-work)

If you want to support my work in other way than contributing the code itself, you can always pass me some small donation 🍺 at  :)

Installation
------------

[](#installation)

Composer install:

```
composer require pawlox/video-thumbnail

```

After package installation, add the ServiceProvider to the providers array in config/app.php

```
Pawlox\VideoThumbnail\VideoThumbnailServiceProvider::class

```

And to the aliases array

```
'VideoThumbnail' => Pawlox\VideoThumbnail\Facade\VideoThumbnail::class

```

Also you can publish package config file with:

```
php artisan vendor:publish --tag=video-thumbnail

```

and set ffmpeg and ffprobe paths in .env file:

```
FFMPEG="/usr/bin/ffmpeg"
FFPROBE="/usr/bin/ffprobe"

```

Versions
--------

[](#versions)

LaravelPHPpawlox/video-thumbnailphp-ffmpeg/php-ffmpeg&gt;= ^5.0 and &lt; ^5.8&lt; 7.4^1.\*0.11.0^5.8 and ^6.\*&gt;= 7.4 and &lt;= 8.1^2.\*0.13.0^7.\* and ^8.\*&gt;= 7.4 and &lt;= 8.1^3.\*0.19.0^9.\*&gt;= 8.0^4.\*1.\*Usage
-----

[](#usage)

```
VideoThumbnail::createThumbnail(
    $videoUrl,
    $storageUrl,
    $fileName,
    $second,
    $width = 640,
    $height = 480
);

```

**$videoUrl** - absolute path to video file,
**$storageUrl** - absolute path where the thumbnail should be save,
**$fileName** - name of thumbnail file,
**$second** - from which second of the movie thumbnail should be created,
**$width** \[Optional\] - width (in pixels) of the thumbnail (default 640),
**$height** \[Optional\] - height (in pixels) of the thumbnail (default 480).

Example
-------

[](#example)

```
VideoThumbnail::createThumbnail(
    public_path('files/movie.mp4'),
    public_path('files/thumbs/'),
    'movie.jpg',
    2,
    1920,
    1080
);

```

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance45

Moderate activity, may be stable

Popularity47

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~461 days

Recently: every ~261 days

Total

7

Last Release

419d ago

Major Versions

v1.0.3 → v2.0.02022-05-14

v2.0.0 → v3.0.02022-05-15

v3.0.0 → v4.0.02022-05-15

v4.0.0 → v5.0.02023-09-29

PHP version history (2 changes)v2.0.0PHP &gt;=7.4

v4.0.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/456ac79d36e41b41fb801ae31de63d30a044c876c7844b97ba158cfbfa658848?d=identicon)[pawlox](/maintainers/pawlox)

---

Top Contributors

[![pawlox](https://avatars.githubusercontent.com/u/8789470?v=4)](https://github.com/pawlox "pawlox (13 commits)")[![sukhilpits](https://avatars.githubusercontent.com/u/23118498?v=4)](https://github.com/sukhilpits "sukhilpits (11 commits)")[![pawel-omniaz](https://avatars.githubusercontent.com/u/100271775?v=4)](https://github.com/pawel-omniaz "pawel-omniaz (7 commits)")[![thanosalexandris](https://avatars.githubusercontent.com/u/95676615?v=4)](https://github.com/thanosalexandris "thanosalexandris (3 commits)")[![stojankukrika](https://avatars.githubusercontent.com/u/10199584?v=4)](https://github.com/stojankukrika "stojankukrika (1 commits)")[![thanosalexander](https://avatars.githubusercontent.com/u/6491808?v=4)](https://github.com/thanosalexander "thanosalexander (1 commits)")

---

Tags

laravelVideo ThumbnailsLaravel video thumbnail

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pawlox-video-thumbnail/health.svg)

```
[![Health](https://phpackages.com/badges/pawlox-video-thumbnail/health.svg)](https://phpackages.com/packages/pawlox-video-thumbnail)
```

###  Alternatives

[creativeorange/gravatar

A Laravel Gravatar package for retrieving gravatar image URLs or checking the existance of an image.

5467.5M54](/packages/creativeorange-gravatar)[intervention/image-laravel

Laravel Integration of Intervention Image

1536.5M102](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[ralphjsmit/laravel-glide

Auto-magically generate responsive images from static image files.

4719.6k5](/packages/ralphjsmit-laravel-glide)[spatie/laravel-og-image

Generate OG images for your Laravel app

305.2k](/packages/spatie-laravel-og-image)[nikkanetiya/laravel-color-palette

Laravel Wrapper for `ksubileau/color-thief-php`. Grabs the dominant color or a representative color palette from an image. Uses PHP and GD or Imagick.

3312.6k](/packages/nikkanetiya-laravel-color-palette)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
