avalanche123/AvalancheImagineBundle — pull request #59 by inmarelibero (2012-05-06 12:09:54+00:00)
Title: add support to Imagine Basic filters

This PR aims to give support to almost all the Imagine basic filters, not only `thumbnail`.

The list of the new filters supported is:

crop
resize
rotate
filpHorizontally
flipVertically
thumbnail

As described in the [documentation](http://imagine.readthedocs.org/en/latest/api/Image/manipulator_interface.html#Imagine\Image\ManipulatorInterface), these are the basic filters that could be interesting for image manipulation in twig. Filters like `copy` or `paste` are not implemented.

A user would be now able to use all these options in `config.yml`:

avalanche_imagine:
filters:
crop:
type: crop
options: { start: [0, 0], size: [120, 120] }
resize:
type: resize
options: { size: [120, 120] }
rotate:
type: rotate
options: { angle: 145, background: '#CCC' }
flipHorizontally:
type: flipHorizontally
flipVertically:
type: flipVertically
outset:
type: thumbnail
options: { size: [120, 120], mode: outset }
inset:
type: thumbnail
options: { size: [120, 120], mode: inset }