PHPackages                             jyggen/youtubethumb - 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. jyggen/youtubethumb

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

jyggen/youtubethumb
===================

A PHP class created to help you load, edit and save thumbnails from videos on Youtube.

v2.1(13y ago)235MITPHPPHP &gt;=5.3.0

Since Nov 24Pushed 13y ago1 watchersCompare

[ Source](https://github.com/jyggen/YoutubeThumb)[ Packagist](https://packagist.org/packages/jyggen/youtubethumb)[ Docs](https://github.com/jyggen/YoutubeThumb)[ RSS](/packages/jyggen-youtubethumb/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

YoutubeThumb [![Build Status](https://camo.githubusercontent.com/9dea50d688524485d6ea9e7fb35082d0d79c0748256daf2333ff62ea7c5ba718/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6a796767656e2f596f75747562655468756d622e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/jyggen/YoutubeThumb)
===================================================================================================================================================================================================================================================================================================================

[](#youtubethumb-)

A PHP class created to help you load, edit and save thumbnails from videos on Youtube.

[Find YoutubeThumb on Packagist/Composer](https://packagist.org/packages/jyggen/youtubethumb)

Examples
--------

[](#examples)

```
use jyggen\Youtube\Thumbnail;

// Load a thumbnail and save it to disk.
Thumbnail::forge('83fJ7hlZkpA')->save('my_path/');

// Maybe we wanna do some changes aswell. Retrieve the previously forged instance.
$thumb = Thumbnail::instance('83fJ7hlZkpA');

// Get the Thumbnail's GD resource.
$data  = $thumb->getData();

// Create a new GD resource and copy a portion of the thumbnail into our new image.
$dest = imagecreatetruecolor(80, 40);
imagecopy($dest, $data, 0, 0, 20, 13, 80, 40);

// Set our old thumbnail to the new resized one.
$thumb->setData($dest);

// Oh shit, did we fudge up something? Reset the image to its original state.
$thumb->reset();

// We want to save the image again, but with a different name and extension.
$thumb->setName('my_awesome_thumbnail');
$thumb->save('my_path/', 'gif');
```

Thumbnail object
----------------

[](#thumbnail-object)

### Static Methods

[](#static-methods)

- **forge(string $youtubeId)**
    Forge a new Thumbnail instance.
- **instance(string $youtubeId)**
    Retrieve an existing Thumbnail instance.

### Methods

[](#methods)

- **reset()**
    Reset the thumbnail to its original state.
- **save(string $path, string $extension = 'png')**
    Save the thumbnail to disk.
- **getData()**
    Get the thumbnail's GD resource.
- **setData(resource $data)**
    Set the thumbnail's GD resource.
- **getName()**
    Get the output name without extension.
- **setName(string $name)**
    Set the output name without extension.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~47 days

Total

3

Last Release

4823d ago

Major Versions

v1.0 → v2.02012-11-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/b1c2582c8226376516e4de2eb686627134a90b827c76481d725a27671c37879c?d=identicon)[jyggen](/maintainers/jyggen)

---

Top Contributors

[![jyggen](https://avatars.githubusercontent.com/u/264300?v=4)](https://github.com/jyggen "jyggen (22 commits)")

---

Tags

thumbnailimageyoutube

### Embed Badge

![Health badge](/badges/jyggen-youtubethumb/health.svg)

```
[![Health](https://phpackages.com/badges/jyggen-youtubethumb/health.svg)](https://phpackages.com/packages/jyggen-youtubethumb)
```

###  Alternatives

[intervention/image

PHP Image Processing

14.3k194.3M2.2k](/packages/intervention-image)[sybio/image-workshop

Powerful PHP class using GD library to work easily with images including layer notion (like Photoshop or GIMP)

860918.1k11](/packages/sybio-image-workshop)[h4cc/wkhtmltoimage-amd64

Convert html to image using webkit (qtwebkit). Static linked linux binary for amd64 systems.

20110.7M15](/packages/h4cc-wkhtmltoimage-amd64)[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M102](/packages/intervention-image-laravel)[james-heinrich/phpthumb

The PHP thumbnail generator

318516.1k6](/packages/james-heinrich-phpthumb)[folklore/image

Image manipulation library for Laravel 5 based on Imagine and inspired by Croppa for easy url based manipulation

270248.2k5](/packages/folklore-image)

PHPackages © 2026

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