PHPackages                             agilepixel/imagesrespond - 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. agilepixel/imagesrespond

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

agilepixel/imagesrespond
========================

On-the-fly responsive images

v0.2.1(7y ago)016MITPHPPHP &gt;=7.1.29

Since Mar 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/agilepixel/ImagesRespond)[ Packagist](https://packagist.org/packages/agilepixel/imagesrespond)[ RSS](/packages/agilepixel-imagesrespond/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (5)Versions (10)Used By (0)

ImagesRespond
=============

[](#imagesrespond)

[![Build Status](https://camo.githubusercontent.com/0e7a959df03f1d2945cad78b43177069b2c1f9b04f67a9cfd6853e428dbb25f7/68747470733a2f2f7472617669732d63692e6f72672f6167696c65706978656c2f496d61676573526573706f6e642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/agilepixel/ImagesRespond) [![Coverage Status](https://camo.githubusercontent.com/7bf6e48727935bbf7c609c901572affa35b1f68e2ca228ce502fadcbcfbbbc32/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6167696c65706978656c2f496d61676573526573706f6e642f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/agilepixel/ImagesRespond?branch=master)

A quick drop-in PHP library to output scaled images for responsive purposes

Usage
-----

[](#usage)

You have a large image with the following url

`http://my.site/img/my_large_image.png`

Once installed and configured, you can return a scaled version of this image with a width of 200px by amending the requested url:

`http://my.site/img/respond-200-my_large_image.png`

If you need the scaling to be based on height instead of witdh use the following:

`http://my.site/img/respond-200h-my_large_image.png`

### Installation via Composer

[](#installation-via-composer)

`composer require agilepixel/imagesrespond`

### Configure for Apache

[](#configure-for-apache)

Enter into your server configuration or .htaccess, customise based on your desired configuration

```
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} respond-[0-9]+h?-.*\.(jpg|gif|png|webp|jpeg)$
RewriteRule ^(.*)$ vendor/agilepixel/imagesrespond/src/rewrite.php [L]

```

### Configure for Nginx

[](#configure-for-nginx)

Enter the following into your Nginx server configuration, customise based on your desired configuration

```
rewrite respond-([0-9]+)h?-.*\.(jpg|gif|png|webp|jpeg)$ /vendor/agilepixel/imagesrespond/src/rewrite.php last;

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Every ~54 days

Total

9

Last Release

2602d ago

PHP version history (3 changes)v0.0.1PHP &gt;=5.6.33

v0.2.0PHP &gt;=7.1.25

v0.2.1PHP &gt;=7.1.29

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/316645?v=4)[Richard Brown](/maintainers/code418)[@code418](https://github.com/code418)

---

Top Contributors

[![code418](https://avatars.githubusercontent.com/u/316645?v=4)](https://github.com/code418 "code418 (19 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[symfony/ux-cropperjs

Cropper.js integration for Symfony

19322.9k3](/packages/symfony-ux-cropperjs)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M524](/packages/shopware-core)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9317.2k55](/packages/open-dxp-opendxp)

PHPackages © 2026

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