Method |
Description |
|
__construct ( integer $width, integer $height, string $specs = 'fit', string $name = null, integer $offset = null, string $label = null ) |
|
|
__toString ( ) : string |
|
|
fits ( Newscoop\Image\ImageInterface $image ) : boolean |
Test if rendition fits image |
|
generateImage ( string $imagePath ) : Imagine\Gd\Image |
Generate image |
|
getAspectRatio ( ) : float |
Get aspect ratio |
|
getHeight ( ) : integer |
Get height |
|
getInfo ( ) : string |
Get info |
|
getLabel ( ) : string |
Get label |
|
getMinSize ( Newscoop\Image\ImageInterface $image ) : array |
Get min size |
|
getName ( ) : string |
Get name |
|
getPreview ( integer $width, integer $height ) : Newscoop\Image\Rendition |
Get preview |
|
getSelectArea ( Newscoop\Image\ImageInterface $image ) : array |
Get select area |
|
getSpecs ( ) : string |
Get specification |
|
getThumbnail ( Newscoop\Image\ImageInterface $image, ImageService $imageService ) : Newscoop\Image\Thumbnail |
Get thumbnail |
|
getWidth ( ) : void |
Get width |
|
isCrop ( ) : boolean |
Test if is crop defined |
|
setCoords ( string $coords ) : void |
Set coordinates for image |
|
setHeight ( integer $height ) : void |
Set height |
|
setLabel ( string $label ) : void |
Set label |
|
setOffset ( integer $offset ) : void |
Set offset |
|
setSpecs ( string $specs ) : void |
Set specification |
|
setWidth ( integer $width ) : void |
Set width |
|