PHPackages                             simple-thumbnail/simple-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. simple-thumbnail/simple-thumbnail

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

simple-thumbnail/simple-thumbnail
=================================

This class is designed to be a simple and lightweight way to create thumbnails.

1551PHP

Since Dec 28Pushed 12y ago3 watchersCompare

[ Source](https://github.com/guilhermefarias/SimpleThumbnail)[ Packagist](https://packagist.org/packages/simple-thumbnail/simple-thumbnail)[ RSS](/packages/simple-thumbnail-simple-thumbnail/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

SimpleThumbnail
===============

[](#simplethumbnail)

Simple and lightweight PHP Class to create thumbnails.

Getting Started
---------------

[](#getting-started)

Import the class

```
include 'SimpleThumbnail.php';
```

Instance the class, configure size, load image source and set name of thumbnail

```
$simpleThumbnail = new SimpleThumbnail;
$simpleThumbnail->setWidth(250);
$simpleThumbnail->setHeight(250);
$simpleThumbnail->setQuality(100);
$simpleThumbnail->generate("image.png", "thumb.jpg");
```

Methods
-------

[](#methods)

There are some methods that you must use to generate your thumbnail:

- **setWidth(*int $width*)**

Set width of thumbnail, parameter must be a integer value.

- **setHeight(*int $height*)**

Set height of thumbnail, parameter must be a integer value.

- **setQuality(*int $quality*)**

Set quality of thumbnail, parameter must be a integer value between 1 and 100..

- **generate(*string $sourceImage, string $thumbnailTarget*)**

This method will load original image from a source path given as string on the first parameter and will generate a thumbnail with the size and quality given on settings methods.

The Thumbnail will be saved on the path passed as string on the second parameter.

About
-----

[](#about)

Its just a class who load original image and generate a thumbnail with a size and quality given.

#### Why?

[](#why)

This class is designed to be a simple and lightweight way to create thumbnails.

The idea came from my need to generate thumbnails and many classes that I found on the internet had several features that are not necessary to generate a simple thumbnail.

#### Who?

[](#who)

Created by [Guilherme Farias](http://guilhermefarias.com.br/), a web developer from Brazil.

#### License?

[](#license)

SimpleThumbnail is released under the terms of the [MIT license](https://github.com/guilhermefarias/SimpleThumbnail/blob/master/MIT-LICENSE).

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1626178?v=4)[Guilherme Farias](/maintainers/guilhermefarias)[@guilhermefarias](https://github.com/guilhermefarias)

---

Top Contributors

[![guilhermefarias](https://avatars.githubusercontent.com/u/1626178?v=4)](https://github.com/guilhermefarias "guilhermefarias (5 commits)")[![jfranciscos4](https://avatars.githubusercontent.com/u/1788750?v=4)](https://github.com/jfranciscos4 "jfranciscos4 (2 commits)")

### Embed Badge

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

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

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

133890.0k3](/packages/goat1000-svggraph)[imagekit/imagekit

PHP library for Imagekit

46877.3k10](/packages/imagekit-imagekit)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

12644.1k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

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