PHPackages                             fruitcake/magento2-custom-image-url - 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. fruitcake/magento2-custom-image-url

ActiveMagento2-module[Image &amp; Media](/categories/media)

fruitcake/magento2-custom-image-url
===================================

Magento2 Custom Image URLS for the catalog

v0.1.1(2y ago)268.9k9MITPHPPHP ^7|~8.1.0

Since Jul 16Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/fruitcake/magento2-custom-image-url)[ Packagist](https://packagist.org/packages/fruitcake/magento2-custom-image-url)[ RSS](/packages/fruitcake-magento2-custom-image-url/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)DependenciesVersions (2)Used By (0)

Magento2 Custom Image Url
=========================

[](#magento2-custom-image-url)

Magento 2.4 has the option to set a dynamic URL (General -&gt; Web -&gt; Url options). This module adds an extra option to define the format of the URL.

Install
-------

[](#install)

```
composer require fruitcake/magento2-custom-image-url
php bin/magento module:enable Fruitcake_CustomImageUrl
php bin/magento setup:upgrade

```

Configuration
-------------

[](#configuration)

You can configure the url in General -&gt; Web -&gt; Url Options. Set the 'Catalog media URL format' option to 'Image optimization based on query parameters'. This will prevent Magento from creating resized images. Select a Custom URL format for Imgproxy or Pattern, to use this module.

[![image](https://user-images.githubusercontent.com/973269/108608605-6cbe5b00-73c8-11eb-90dd-37777dc5d64c.png)](https://user-images.githubusercontent.com/973269/108608605-6cbe5b00-73c8-11eb-90dd-37777dc5d64c.png)

### Pattern

[](#pattern)

Provide a pattern to replace the URL with:

Example [https://example.com/{{path}}?w={{width}}&amp;h={{height}}](https://example.com/%7B%7Bpath%7D%7D?w=%7B%7Bwidth%7D%7D&h=%7B%7Bheight%7D%7D)

The available filters (for urlencode etc) and variables are described in the config.

### Imgproxy

[](#imgproxy)

[![image](https://user-images.githubusercontent.com/973269/108608636-94152800-73c8-11eb-88bc-da2d6b4ed4c0.png)](https://user-images.githubusercontent.com/973269/108608636-94152800-73c8-11eb-88bc-da2d6b4ed4c0.png)

Use the Imgproxy format, either with URL, S3 or Local files. You can provide a key/hash to sign the URLs

This can be used with the AWS Remote storage:

You can provide the host and options. The format will be generated by the module.

Inscecure proxy to map the URL + Convert to Webp:

`docker run -p 8080:8080 -e IMGPROXY_ENFORCE_WEBP=1 darthsim/imgproxy`

Example Docker config to proxy with S3 + Signature

`docker run -p 8080:8080 -e IMGPROXY_USE_S3=1 -e AWS_ACCESS_KEY_ID=accesskey -e IMGPROXY_S3_REGION=eu-central-1 -e AWS_SECRET_ACCESS_KEY="secret" -e IMGPROXY_KEY=key -e IMGPROXY_SALT=salt darthsim/imgproxy`

See  for more options.

See imgproxy-nginx-cached.conf for an example nginx proxy config with caching enabled.

Todo / future ideas
-------------------

[](#todo--future-ideas)

- Other CDNs
- ..

License
-------

[](#license)

MIT

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance45

Moderate activity, may be stable

Popularity33

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

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

1077d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dad47b02be23edb7094a151b4b1ce7e9cb56b75cd87cd3341d140e1e1e9cd0e4?d=identicon)[barryvdh](/maintainers/barryvdh)

---

Top Contributors

[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (9 commits)")[![frank-bokdam](https://avatars.githubusercontent.com/u/46452308?v=4)](https://github.com/frank-bokdam "frank-bokdam (2 commits)")[![Tjitse-E](https://avatars.githubusercontent.com/u/14849044?v=4)](https://github.com/Tjitse-E "Tjitse-E (2 commits)")

---

Tags

imagemagentocatalogcdnmagento2imgproxy

### Embed Badge

![Health badge](/badges/fruitcake-magento2-custom-image-url/health.svg)

```
[![Health](https://phpackages.com/badges/fruitcake-magento2-custom-image-url/health.svg)](https://phpackages.com/packages/fruitcake-magento2-custom-image-url)
```

###  Alternatives

[smile/module-product-label

Smile - Extension of Magento2 to be able to contribute images associated to product attribute values.

58100.7k](/packages/smile-module-product-label)[onliner/imgproxy-php

ImgProxy url builder for PHP

25204.4k4](/packages/onliner-imgproxy-php)[otisz/laravel-imgix

1419.4k](/packages/otisz-laravel-imgix)[somehow-digital/typo3-media-processing

Media Processing

121.2k](/packages/somehow-digital-typo3-media-processing)[opengento/module-product-breadcrumbs

This module allows to toggle server side rendered breadcrumbs for product pages.

1010.3k](/packages/opengento-module-product-breadcrumbs)

PHPackages © 2026

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