PHPackages                             sergiocardoso/phpicture - 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. sergiocardoso/phpicture

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

sergiocardoso/phpicture
=======================

Generate friendly thumbs from url with parameters

1.0.0(9y ago)227MITPHPPHP &gt;=5.3.0

Since Jul 18Pushed 9y ago1 watchersCompare

[ Source](https://github.com/sergiocardoso/PHPicture)[ Packagist](https://packagist.org/packages/sergiocardoso/phpicture)[ Docs](http://sergiocardoso.org/phpicture)[ RSS](/packages/sergiocardoso-phpicture/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

[![](https://camo.githubusercontent.com/6e6363d78e6621efbe613ad52c960f4c7b21622cef64a5fd207fb6462a3eee1e/687474703a2f2f73657267696f636172646f736f2e7465636e6f6c6f6769612e77732f77702d636f6e74656e742f75706c6f6164732f323031362f30322f6c6f676f2e737667)](https://camo.githubusercontent.com/6e6363d78e6621efbe613ad52c960f4c7b21622cef64a5fd207fb6462a3eee1e/687474703a2f2f73657267696f636172646f736f2e7465636e6f6c6f6769612e77732f77702d636f6e74656e742f75706c6f6164732f323031362f30322f6c6f676f2e737667)

PHPicture
=========

[](#phpicture)

This class generate thumb from images with frienldy directives and settings from url on HREF attribute from IMG tag on HTML.

##### Required

[](#required)

- PHP &gt; 5.4;
- PHP GD;

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

[](#getting-started)

##### Configuration:

[](#configuration)

It's necessary setup two folder on PHPicture.ini file:

- \[images\_folder\] - folder from all your images;
- \[cache\_folder\] - folder from a cache generation;

##### How its works:

[](#how-its-works)

Call all your images from HTML5 to PHPicture project. See the example below: If you install PHPicture project on the folder called myimg, and all your images are on the public/img folder, so change your HTML IMG SRC attribute to:

```
http://[absolute or relative path]/myimg/photo.png

```

Load the image from public/img folder.

```
http://[absolute or relative path]/myimg/photo-w:100-h:100.png

```

Resize this image to 100x100.

```
http://[absolute or relative path]/myimg/photo-w:140-h:120-b:e1e1e1.png

```

Resize this image to 140x120 and the fill the background with the hexdecimal color (b = background color parameter);

```
http://[absolute or relative path]/myimg/photo-f:jpg-q:9.png

```

Load image png in jpg format with 9 of compression. (q = quality parameter)

### Version

[](#version)

1.0.0

### Author

[](#author)

Sérgio Cardoso

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3634d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2672085?v=4)[Sérgio Cardoso](/maintainers/sergiocardoso)[@sergiocardoso](https://github.com/sergiocardoso)

---

Top Contributors

[![sergiocardoso](https://avatars.githubusercontent.com/u/2672085?v=4)](https://github.com/sergiocardoso "sergiocardoso (2 commits)")

---

Tags

gdresizeimagesthumbeffects

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sergiocardoso-phpicture/health.svg)

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

###  Alternatives

[intervention/image

PHP Image Processing

14.3k203.8M2.5k](/packages/intervention-image)[rosell-dk/webp-convert

Convert JPEG &amp; PNG to WebP with PHP

6058.7M59](/packages/rosell-dk-webp-convert)[sybio/image-workshop

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

854936.5k12](/packages/sybio-image-workshop)[jbzoo/image

A PHP class that simplifies working with images

171128.5k3](/packages/jbzoo-image)[intervention/image-laravel

Laravel Integration of Intervention Image

1558.1M160](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

506511.0k27](/packages/bkwld-croppa)

PHPackages © 2026

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