Neos\Media\Domain\Model\ThumbnailGenerator\FontDocumentThumbnailGenerator::resize PHP Method

resize() protected method

protected resize ( Thumbnail $thumbnail, PersistentResource $resource ) : array
$thumbnail Neos\Media\Domain\Model\Thumbnail
$resource Neos\Flow\ResourceManagement\PersistentResource
return array
    protected function resize(Thumbnail $thumbnail, PersistentResource $resource)
    {
        $adjustments = array(new ResizeImageAdjustment(array('width' => $thumbnail->getConfigurationValue('width'), 'maximumWidth' => $thumbnail->getConfigurationValue('maximumWidth'), 'height' => $thumbnail->getConfigurationValue('height'), 'maximumHeight' => $thumbnail->getConfigurationValue('maximumHeight'), 'ratioMode' => $thumbnail->getConfigurationValue('ratioMode'), 'allowUpScaling' => $thumbnail->getConfigurationValue('allowUpScaling'))));
        return $this->imageService->processImage($resource, $adjustments);
    }
FontDocumentThumbnailGenerator