Devise\Pages\Fields\Handlers\ImageFieldUpdated::createThumbnailOfImage PHP Method

createThumbnailOfImage() protected method

Create a version of this thumbnail, crops too when $crop is set to true
protected createThumbnailOfImage ( Field $field, $input ) : string
$field Field
return string
    protected function createThumbnailOfImage($field, $input)
    {
        if (!array_get($input, 'has_thumbnail', false) || !$field->values->image(false)) {
            return '';
        }
        return array_get($input, '_crop_thumbnail', false) ? $this->croppedImagePath($field, 'thumbnail') : $this->resizedImagePath($field, 200, 200);
    }