$need
$need : array
Array of required, supported features for this ImageGenerator to work
ImageGenerator to create the thumb view (plain, resized thumbnails).
New thumbnail generators can be dropped in and will be made available by Ansel providing:
The class name is as: AnselImageGenerator{type}Thumb and filename matches, i.e. {type}Thumb.php where {type} is the unique name for your thumbnail type.
Implements a _create() method that applies the effects to the image (see existing generators for how this works).
Copyright 2007-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
$_image : \Ansel_Image
Ansel_Image object that this view is created from.
$_style : \Ansel_Style
Cache the style
factory(string $type, array $params = array()) : \Ansel_ImageGenerator
Horde_ImageGenerator factory
string | $type | The type of concrete instance to return. |
array | $params | Additional parameters needed for the instance. |