PHPackages                             flazzarotto/binary-filter - 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. flazzarotto/binary-filter

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

flazzarotto/binary-filter
=========================

Easy Liip Imagine server-side image filter for both files and binary data

0.1.5(9y ago)044GPL-3.0PHP

Since Dec 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/flazzarotto/binary-filter-bundle)[ Packagist](https://packagist.org/packages/flazzarotto/binary-filter)[ RSS](/packages/flazzarotto-binary-filter/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

README
======

[](#readme)

This Symfony3 bundle use `liip/imagine` to allow easy php-side image filter.

\## Set up

1. Run `composer require flazzarotto/binary-filter`
2. Modify you AppKernel.php:

    ```
    $bundles = [
      // add following lines
      new \Liip\ImagineBundle\LiipImagineBundle(),
      new Flazzarotto\BinaryFilterBundle\BinaryFilterBundle()
    ];
    ```
3. Configure your filters the same way you do with liip, but using our binary image loader as data loader. For example:

    ```
    # config.yml
    liip_imagine :
        # your filter sets are defined here
        filter_sets :
            # use the default cache configuration
            cache : ~

            my_filter:
                data_loader: binary_image_data_loader
                filters:
                    thumbnail:
                        size: [1920, 1080]
                        mode: outbound
    ```

HOW TO USE
==========

[](#how-to-use)

The main goal of this package is to allow you to resize, generate thumbnails on the fly, in controllers, commands, services... You can provide both binary data and filepaths to the service.

Example:

```
$filter = $this->get('image.back_filter'); // the BinaryFilter service

$filter ->setDefaultFilter('my_filter') // filter as defined in your config.yml - optional

        ->loadBinary($data,$outputFile) // $data as binary, $outputFile as path relative to directory - return a BinaryFilter object
        // OR
        ->loadFile($path) // provide absolute path to your input image - return a BinaryFilter object

        ->applyFilter($filter) // you can override default filter - optional if default filter has been given

        ->getMimeType(); // optional; useful to determine extension or for direct download

        ->outputFile(true); // save filtered image to output file; set parameter to true to allow overriding if file exists
        // OR
        ->getFilteredBinary(); // returns picture as binary data
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Total

6

Last Release

3491d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4263017?v=4)[flazzarotto](/maintainers/flazzarotto)[@flazzarotto](https://github.com/flazzarotto)

---

Tags

symfonyimageserverfilterbinarypictureliip-imagineResizer

### Embed Badge

![Health badge](/badges/flazzarotto-binary-filter/health.svg)

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

###  Alternatives

[aplus/image

Aplus Framework Image Library

2221.6M1](/packages/aplus-image)[h4cc/wkhtmltoimage-i386

Convert html to image using webkit (qtwebkit). Static linked linux binary for i386 systems.

34684.1k5](/packages/h4cc-wkhtmltoimage-i386)[snowcap/im-bundle

Imagemagick wrapper for Symfony2

2347.1k2](/packages/snowcap-im-bundle)[toinekamps/responsive-pics

Responsive Pics is a Wordpress tool for resizing images on the fly.

832.2k](/packages/toinekamps-responsive-pics)[spescina/imgproxy

An image proxy for Laravel

201.3k](/packages/spescina-imgproxy)

PHPackages © 2026

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