PHPackages                             resampler/resampler - 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. resampler/resampler

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

resampler/resampler
===================

Simple PHP library for resampling images with GD extension

v2.1.1(3mo ago)31.5k↓16.7%WTFPLPHPPHP ^8.1CI passing

Since Nov 11Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/arxeiss/resampler.php)[ Packagist](https://packagist.org/packages/resampler/resampler)[ Docs](https://github.com/arxeiss/Resampler.php)[ RSS](/packages/resampler-resampler/feed)WikiDiscussions v2.x Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (7)Used By (0)

Resampler.php
=============

[](#resamplerphp)

Simple PHP library for resampling images with GD extension. More on

### Why another library? What is so special?

[](#why-another--library-what-is-so-special)

- Resampler is only for resampling and never will contain drawing methods
- Counting memory usage to avoid Fatal error caused by allocating too much memory
- Support *resize*, *crop*, *rectangle* and *rotate* methods. Especially *rectangle* is missing in many other libraries
- Support auto rotation based on EXIF data
- Using cascade pattern / method chaining
- Support JPEG, PNG and GIF images. Decision is automatical based on file suffix

### Installation &amp; requirements

[](#installation--requirements)

Library can be installed from [Packagist](https://packagist.org/packages/resampler/resampler) and loaded with Composer

Put this line into your `composer.json` file

```
"resampler/resampler": "~2.0"

```

or execute following command

```
composer require resampler/resampler

```

#### Requirements

[](#requirements)

Library requires at least PHP 8.1 and GD and Fileinfo extensions. For PHP 5.4 use version 1.x of this library.

Documentation and examples
--------------------------

[](#documentation-and-examples)

More info about library, API documentation and code examples can be found on

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance78

Regular maintenance activity

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity76

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

Recently: every ~723 days

Total

6

Last Release

114d ago

Major Versions

v1.x-dev → v2.0.02025-04-10

PHP version history (2 changes)v1.0PHP &gt;=5.4.0

v2.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/1347794365895adc762fab67e3e8bd39460ab7be355626bd666ec2c28e53dd49?d=identicon)[arxeiss](/maintainers/arxeiss)

---

Top Contributors

[![arxeiss](https://avatars.githubusercontent.com/u/5103109?v=4)](https://github.com/arxeiss "arxeiss (15 commits)")

---

Tags

gd-extensionphpresampleresampling-imagesimageresizeresample

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[intervention/image

PHP Image Processing

14.3k194.3M2.2k](/packages/intervention-image)[gumlet/php-image-resize

PHP class to re-size and scale images

1.2k5.7M54](/packages/gumlet-php-image-resize)[masterexploder/phpthumb

A library for manipulating images in PHP.

981751.7k17](/packages/masterexploder-phpthumb)[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)[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)

PHPackages © 2026

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