PHPackages                             owja/image-proxy-bundle - 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. owja/image-proxy-bundle

AbandonedArchivedSymfony-bundle[Image &amp; Media](/categories/media)

owja/image-proxy-bundle
=======================

Base Bundle for OWJA! Image Proxy

0.0.2(8y ago)018[2 issues](https://github.com/owja/image-proxy-bundle/issues)MITPHPPHP &gt;=7.0.0

Since Jul 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/owja/image-proxy-bundle)[ Packagist](https://packagist.org/packages/owja/image-proxy-bundle)[ RSS](/packages/owja-image-proxy-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (12)Versions (3)Used By (0)

OWJA! Image Proxy Bundle
========================

[](#owja-image-proxy-bundle)

[![Latest Stable Version](https://camo.githubusercontent.com/d5242de37bd68e26d474c5aac5de5f371bddff4e049be6542d05f2d3c1464823/68747470733a2f2f706f7365722e707567782e6f72672f6f776a612f696d6167652d70726f78792d62756e646c652f762f737461626c65)](https://packagist.org/packages/owja/image-proxy-bundle?format=flat-square)[![Latest Unstable Version](https://camo.githubusercontent.com/3fbb5440f63ab715029dde8cf02c28b05e042756b628cf8e2e9fceb09da36477/68747470733a2f2f706f7365722e707567782e6f72672f6f776a612f696d6167652d70726f78792d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/owja/image-proxy-bundle?format=flat-square)[![License](https://camo.githubusercontent.com/b5c37014d06c8923ebd6ebcd0cb8eb6cc3bc5e354bf0bce7efacc3f3987cf191/68747470733a2f2f706f7365722e707567782e6f72672f6f776a612f696d6167652d70726f78792d62756e646c652f6c6963656e7365)](https://packagist.org/packages/owja/image-proxy-bundle?format=flat-square)[![Build Status](https://camo.githubusercontent.com/9b982c81fc7d4a46478ff79d1d86861d65d9a69f8f51ba70c535234a73967f5a/68747470733a2f2f7472617669732d63692e6f72672f6f776a612f696d6167652d70726f78792d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/owja/image-proxy-bundle)

This Bundle is Open Source and under MIT license.

With this Bundle you can add some Image Resizing and Optimization Functionality to your Symfony Project. After Setup and Configuration you can access the Images on the same, or one or more other Servers, trough this Installation.

### Accessing the images

[](#accessing-the-images)

#### Preset Mode

[](#preset-mode)

`enable_presets` must be set to `true` to use this. Default is `true`.

http://.../:`preset`/`imagepath`

VarValueRequiredInfopresetstringyesThe preset codeimagepathstringyesThe public path to the ImageExample to get image "img/someimage.jpg" processed by preset "fullhd": `http://example.com/:fullhd/img/someimage.jpg`

#### Dynamic Mode

[](#dynamic-mode)

`enable_dynamic` must be set to `true` to use this. Default is `false`.

**IMPORTANT! Dynamic mode should not used in production environment!**

http://.../`type`/`height`x`width`/`imagepath`

VarValueRequiredInfotype**resize** or **crop**yesResize will first resize the image to best fit and then crop to destination size.heightintegernoDestination height of ImagewidthintegernoDestination width of ImageimagepathstringyesThe public path to the Image#### Examples

[](#examples)

Resize and crop the Image to fit into a 100x100 Pixel square

`http://example.com/resize/100x100/img/someimage.jpg`

Cropping to fit into a 100x100 Pixel square

`http://example.com/resize/100x100/img/someimage.jpg`

Resize to 100 Pixel with and preserve original image Ratio

`http://example.com/resize/x100/img/someimage.jpg`

Resize to 100 Pixel height and preserve original image Ratio

`http://example.com/resize/100x/img/someimage.jpg`

Optimizations only:

`http://example.com/resize/x/img/someimage.jpg`

Installation
------------

[](#installation)

```
$ composer require owja/image-proxy-bundle

```

Load Bundles in **app/AppKernel.php**

```
new Oneup\FlysystemBundle\OneupFlysystemBundle(),
new Owja\ImageProxyBundle\OwjaImageProxyBundle(),
```

Setup your **app/config/config.yml**

```
oneup_flysystem:
    adapters:
        image_cache_adapter:
            local:
                directory: "%kernel.root_dir%/../var/images"

    filesystems:
        image_cache_filesystem:
            adapter: image_cache_adapter
            alias: owja_image_proxy.cache

owja_image_proxy:
    sites:
        default:
            url: "http://example.com/"
```

Set "" to the URL representing the source of your images.

Setup your **app/config/routing.yml**

```
owja_image_proxy:
    resource: "@OwjaImageProxyBundle/Controller/"
    type:     annotation
    prefix:   /
```

Create the Directory for temporary Files which gets created while processing the Images:

```
var/temp

```

Configuration Details
---------------------

[](#configuration-details)

```
owja_image_proxy:
    remote:
        token: null
        timeout: 10
    limits:
        height: 1080
        width: 1920
    temp_dir: "%kernel.root_dir%/../var/temp/"
    cache_service: "owja_image_proxy.cache"
    optimization: true
    default_site: default
    enable_sites: false
    enable_dynamic: false
    enable_presets: true
```

CVarDefaultInforemote : token*null*Send by Header 'owja-image-proxy'remote : timeout10Request timeout to get the source imagelimits : height1080Maximum allowed height of requested Imagelimits : width1920Maximum allowed width of requested Imagetemp\_dir"%kernel.root\_dir%/../var/temp/"Temporary directory for image processingcache\_service"owja\_image\_proxy.cache"The name of the cache filesystem (oneup\_flysystem)optimization*true*Enable/disable image optimizationdefault\_site"default"Code of the default site. Has to be configured under *sites*enable\_sites*false*Set to *true* to enable more than the default siteenable\_dynamic*false*Set to *true* to enable dynamic modeenable\_presets*true*Set to *true* to enable processing predefined presetsMultiple Sites
--------------

[](#multiple-sites)

Simply add some sites and set enable\_sites to true

```
owja_image_proxy:
    enable_sites: true
    sites:
        default:
            url: "http://example.com/"
        othersite:
            url: "http://othersite.com/"
        whereever:
            url: "http://wherever.com/"
```

### Accessing the images by sites

[](#accessing-the-images-by-sites)

Same as explained above ("Accessing the images"), but with site parameter

#### Dynamic Mode

[](#dynamic-mode-1)

http://.../`site`/`type`/`width`x`height`/`imagepath`

```
http://example.com/default/resize/100x100/images/someimage.jpg
http://example.com/othersite/resize/100x100/images/someimage.jpg
http://example.com/wherever/resize/100x100/images/someimage.jpg

```

#### Preset Mode

[](#preset-mode-1)

http://.../`site`:`preset`/`imagepath`

```
http://example.com/default:fullhd/images/someimage.jpg
http://example.com/othersite:fullhd/images/someimage.jpg
http://example.com/wherever:fullhd/images/someimage.jpg

```

Presets Configuration
---------------------

[](#presets-configuration)

Global Presets:

```
owja_image_proxy:
    enable_presets: true
    presets:
        fullhd:
            width: 1920
            height: 1080
        banner:
            width: 1600
        profile:
            height: 50
            width: 50
        cuthd:
            width: 1280
            height: 720
            type: crop
```

Per Site Presets:

```
owja_image_proxy:
    enable_presets: true
    sites:
        default:
            url: "http://example.com/"
            presets:
                fullhd:
                    width: 1920
                    height: 1080
        whereever:
            url: "http://whereever.com/"
            presets:
                banner:
                    width: 1600
                    height: 200

```

Image Optimization
------------------

[](#image-optimization)

To enable image optimization you should install some optimizers.

```
# Ubuntu 16.04 LTS
apt install gifsicle jpegoptim pngquant optipng

```

If you have installed some optimizers but want to disable optimization you can do this at **app/config/config.yml**

```
owja_image_proxy:
    optimization: false
```

Reporting &amp; Collaboration
-----------------------------

[](#reporting--collaboration)

Issues and feature requests are tracked in this Github Issue Tracker. Pull Requests to enhance the code to add features or to fix bugs are very welcome. ;-)

License
-------

[](#license)

This bundle is under the MIT license.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

3249d ago

### Community

Maintainers

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

---

Top Contributors

[![hbroer](https://avatars.githubusercontent.com/u/14164004?v=4)](https://github.com/hbroer "hbroer (11 commits)")

---

Tags

image-optimizationimage-processingimage-proxyimage-resizingproxyprocessingcompressorimagesresizing

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/owja-image-proxy-bundle/health.svg)

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

###  Alternatives

[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M514](/packages/shopware-core)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1155.2k](/packages/rcsofttech-audit-trail-bundle)[open-dxp/opendxp

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

9317.2k55](/packages/open-dxp-opendxp)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[forumify/forumify-platform

122.0k12](/packages/forumify-forumify-platform)

PHPackages © 2026

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