PHPackages                             algo26-matthias/create-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. algo26-matthias/create-thumbnail

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

algo26-matthias/create-thumbnail
================================

A simple class to create thumbnails from larger images

0.0.1(10y ago)0111MITPHPPHP &gt;=5.6.0

Since Apr 11Pushed 7y agoCompare

[ Source](https://github.com/algo26-matthias/create-thumbnail)[ Packagist](https://packagist.org/packages/algo26-matthias/create-thumbnail)[ Docs](http://phlylabs.com/)[ RSS](/packages/algo26-matthias-create-thumbnail/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

CreateThumbnail
===============

[](#createthumbnail)

This is just a simple class to create a thumbnail from a given source image.

You'll need one of these packages installed and available:

- the "convert" command line tool from ImageMagick
- the ImageMagick PHP extension
- the GD libarary PHP extension

Depending on your choices of these tools the available source and target image formats vary. JPEG always is a safe bet, but in properly set up environments most of the usual formats like GIF or PNG will be avilable as well.

Purpose of this class is only thumbnail generation, so there's not many options available.

Usage example:

```
use Algo26\CreateThumbnail\CreateThumbnail;

$thumbnail = new CreateThumbnail();

$thumbnail->setTargetWidth($width)
        ->setTargetHeight($height)
        ->setTargetType('JPEG')
        ->setJpegCompressionQuality(90)
        ->create($inputFile, $outputFile);
```

Need anything? Just drop me a line

- Matthias

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3684d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fd8b35a570588281f212e19fffea07682299ce69098e7dd8e53d213868732406?d=identicon)[algo26-matthias](/maintainers/algo26-matthias)

---

Top Contributors

[![algo26-matthias](https://avatars.githubusercontent.com/u/46816988?v=4)](https://github.com/algo26-matthias "algo26-matthias (6 commits)")

---

Tags

convert-imagesphp-librarythumbnail-generatorphpthumbnail

### Embed Badge

![Health badge](/badges/algo26-matthias-create-thumbnail/health.svg)

```
[![Health](https://phpackages.com/badges/algo26-matthias-create-thumbnail/health.svg)](https://phpackages.com/packages/algo26-matthias-create-thumbnail)
```

###  Alternatives

[stefangabos/zebra_image

A single-file, lightweight PHP library designed for efficient image manipulation featuring methods for modifying images and applying filters

141110.4k6](/packages/stefangabos-zebra-image)[dereuromark/media-embed

A PHP library to deal with all those media services around, parsing their URLs and embedding their audio/video content in websites.

182530.3k11](/packages/dereuromark-media-embed)[urlbox/screenshots

Use urlbox to easily generate website thumbnail screenshots from a URL

14250.4k](/packages/urlbox-screenshots)[kiwilan/php-audio

PHP package to parse and update audio files metadata, with `JamesHeinrich/getID3`.

3012.6k1](/packages/kiwilan-php-audio)[automattic/wistia-php

PHP wrapper for Wistia API

1431.9k](/packages/automattic-wistia-php)

PHPackages © 2026

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