PHPackages                             themeplate/image - 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. themeplate/image

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

themeplate/image
================

ThemePlate image handler

v2.1.3(1y ago)187GPL-3.0-onlyPHPPHP ^7.4|^8.2

Since Mar 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ThemePlate/Image)[ Packagist](https://packagist.org/packages/themeplate/image)[ RSS](/packages/themeplate-image/feed)WikiDiscussions develop Synced 6d ago

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

ThemePlate Image
================

[](#themeplate-image)

Usage
-----

[](#usage)

```
use ThemePlate\Image;

Image::register( 'wanted_size', 1920, 1080 );
Image::manipulate( 'wanted_size', 'pixilate', 10 );

Image::register( 'another_size', 640, 480 );
Image::manipulate( 'another_size', 'greyscale' );
Image::manipulate( 'another_size', 'blur', 20 );

$processor = Image::processor();

$processor->report( function( $output ) {
    error_log( print_r( $output, true ) );
} );

// Simply use the core functions like you normally would
// - wp_get_attachment_image
// - wp_get_attachment_image_url
// - the_post_thumbnail
// - get_the_post_thumbnail
// - get_the_post_thumbnail_url
```

### Force refresh image/s

[](#force-refresh-images)

`/?tpi_refresh=`

`/?tpi_refresh[]=&tcs_refresh[]=`

> *works only when logged-in*

### Image::register( $name, $width, $height )

[](#imageregister-name-width-height-)

- **$name** *(string)(Required)* Size identifier
- **$width** *(int)(Required)* Width in pixels
- **$height** *(int)(Required)* Height in pixels

### Image::manipulate( $size, $filter, $args )

[](#imagemanipulate-size-filter-args-)

- **$size** *(string)(Required)* Registered size
- **$filter** *(string)(Required)* Filter to apply
- **$args** *(array)(Optional)* Parameters to pass. Default `null`

> See available filters in

### Image::processor()

[](#imageprocessor)

Do the processing(crop/resize and manipulations) in the background

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance44

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity74

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

Recently: every ~184 days

Total

8

Last Release

443d ago

Major Versions

v1.1.1 → v2.0.02023-02-25

PHP version history (4 changes)v1.0.0PHP ^7.2

v1.1.1PHP ^7.2|^8.0

v2.0.0PHP ^7.4|^8.0

v2.1.0PHP ^7.4|^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/91095d431958c79a7384d515efec2686ca3cd1e1e1a5a42b680309b8e855355a?d=identicon)[kermage](/maintainers/kermage)

---

Top Contributors

[![kermage](https://avatars.githubusercontent.com/u/8350223?v=4)](https://github.com/kermage "kermage (78 commits)")

---

Tags

image-processingon-the-flywordpress

### Embed Badge

![Health badge](/badges/themeplate-image/health.svg)

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

###  Alternatives

[league/glide

Wonderfully easy on-demand image manipulation library with an HTTP based API.

2.6k51.2M116](/packages/league-glide)[jenssegers/imagehash

Perceptual image hashing for PHP

2.1k2.2M5](/packages/jenssegers-imagehash)[intervention/image-laravel

Laravel Integration of Intervention Image

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

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[lasserafn/php-initial-avatar-generator

A package to generate avatars with initials for PHP

4374.2M13](/packages/lasserafn-php-initial-avatar-generator)[rtippin/messenger

Laravel messenger suite.

45035.8k4](/packages/rtippin-messenger)

PHPackages © 2026

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