PHPackages                             poznet/imageoptimbundle - 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. poznet/imageoptimbundle

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

poznet/imageoptimbundle
=======================

Symfony Bundle - Wrapper for tinyjpg

v1.1.3(8y ago)379GPL-3.0PHPPHP &gt;=5.3

Since Nov 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/poznet/imageoptimbundle)[ Packagist](https://packagist.org/packages/poznet/imageoptimbundle)[ Docs](https://github.com/poznet/imageoptimbundle)[ RSS](/packages/poznet-imageoptimbundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Image Optimization Bundle ( minify - tinyjpg.com)
=================================================

[](#image-optimization-bundle--minify---tinyjpgcom)

### Bundle for Symfony 2/3

[](#bundle-for-symfony-23)

Main idea is to use tinify API to shrink images, that are already stored in server. Shrinking when uploading images takes too much time, so it's better to do that with commands firedup in cron

[![SensioLabsInsight](https://camo.githubusercontent.com/b950b66dcf5bb68a9bffef4c096933913c421cdede247e68b4ea2fcb6f10366f/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f36383963626533662d626332302d346435302d613030632d3031396531353163623661612f6269672e706e67)](https://insight.sensiolabs.com/projects/689cbe3f-bc20-4d50-a00c-019e151cb6aa)

Usage
=====

[](#usage)

Bundle adds **new commands** (for use with cron for example):

`console image:optim:scan` - searches for images in given dirs

`console image:optim:minify` - minify images (default is 20 images per 1 run - can be overwriten by argument)

`console image:optim:stats` - writes statistics info

`console image:optim:truncate` - removes all images data from database

Installation
============

[](#installation)

Install with composer

`composer require poznet/imageoptimbundle`

create databes structures

```
console d:s:u --force

```

**Add API key in parameters.yml**

```
tinifyAPI: key

```

**Define paths in parameters.yml**All paths should be realive to main all dir (1 above app).

This parameters are used in Finder() Component as in() and exclude()

```
imageoptim_dirs:
  - web/media
  - web/media2
imageoptim_excluded:
  - cache

```

Other
=====

[](#other)

Bundle uses custom events , so it can be easily extended

Events :

- image.add
- image.minify

Both takes Poznet\\ImageOptimBundle\\Event\\ImageEvent class as event.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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

Total

4

Last Release

3095d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/99af49a96deba62fa669a5d262344aba5d7ca624f40b13eee1135295e57940cb?d=identicon)[j00seph](/maintainers/j00seph)

---

Top Contributors

[![poznet](https://avatars.githubusercontent.com/u/2962765?v=4)](https://github.com/poznet "poznet (6 commits)")

---

Tags

symfonyimageimage-optimizationtinypngtinyjpgtinifyimage shrinking

### Embed Badge

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

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

###  Alternatives

[liip/imagine-bundle

This bundle provides an image manipulation abstraction toolkit for Symfony-based projects.

1.7k38.3M217](/packages/liip-imagine-bundle)[schmitzal/tinyimg

Image compression for all pngs and jpgs uploaded to the backend (using the tinypng API)

16125.5k](/packages/schmitzal-tinyimg)[gregwar/image-bundle

Image handling bundle

1941.5M9](/packages/gregwar-image-bundle)[kinglozzer/tinypng

TinyPNG PHP API

1292.1k2](/packages/kinglozzer-tinypng)[snowcap/im-bundle

Imagemagick wrapper for Symfony2

2347.0k1](/packages/snowcap-im-bundle)[intervention/image-symfony

Symfony Integration of Intervention Image

1066.8k](/packages/intervention-image-symfony)

PHPackages © 2026

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