Method | Description | |
---|---|---|
__construct ( |
Constructs a new Image field updated event handler | |
handle ( Field $field, array $input, $beforeChanges ) : array | This is called anytime after we update an image field in devise |
Method | Description | |
---|---|---|
createThumbnailOfImage ( Field $field, $input ) : string | Create a version of this thumbnail, crops too when $crop is set to true | |
createVersionOfImage ( Field $field, $input ) : string | Create a version of this image, crops too when $crop is set to true | |
croppedImagePath ( Field $field, $type = 'image' ) : string | Creates a cropped versioned copy of this image | |
resizedImagePath ( Field $field, $width, $height ) : string | Create a version of this thumbnail, crops too when $crop is set to true | |
saveCaption ( $imagePath, array $input ) : string | Save or overwrite caption file for image | |
versionedImagePath ( Field $field ) : string | Creates a versioned copy of this image |
public __construct ( |
||
$Images | ||
$MediaPaths | ||
$Caption | ||
$Framework |
protected createThumbnailOfImage ( Field $field, $input ) : string | ||
$field | Field | |
return | string |
protected createVersionOfImage ( Field $field, $input ) : string | ||
$field | Field | |
return | string |
protected croppedImagePath ( Field $field, $type = 'image' ) : string | ||
$field | Field | |
return | string |
protected resizedImagePath ( Field $field, $width, $height ) : string | ||
$field | Field | |
return | string |
protected saveCaption ( $imagePath, array $input ) : string | ||
$input | array | |
return | string |
protected versionedImagePath ( Field $field ) : string | ||
$field | Field | |
return | string |