Метод | Описание | |
---|---|---|
__construct ( |
Dependency injection | |
delete ( string $url ) : void | Delete source image and all of it's crops | |
render ( string $url ) : string | Render image | |
reset ( string $url ) : void | Delete just the crops, leave the source image | |
tag ( string $url, integer $width = null, integer $height = null, array $options = null ) : string | Create an image tag rather than just the URL. Accepts the same params as url() | |
url ( string $url, integer $width = null, integer $height = null, array $options = null ) : string | Pass through URL requests to URL->generate(). |
public __construct ( |
||
$url | ||
$storage | Bkwld\Croppa\Storage | |
$handler |
public tag ( string $url, integer $width = null, integer $height = null, array $options = null ) : string | ||
$url | string | URL of an image that should be cropped |
$width | integer | Target width |
$height | integer | Target height |
$options | array | Additional Croppa options, passed as key/value pairs. Like array('resize') |
Результат | string | An HTML img tag for the new image |
public url ( string $url, integer $width = null, integer $height = null, array $options = null ) : string | ||
$url | string | URL of an image that should be cropped |
$width | integer | Target width |
$height | integer | Target height |
$options | array | Additional Croppa options, passed as key/value pairs. Like array('resize') |
Результат | string | The new path to your thumbnail |