Neos\Neos\Controller\Backend\ContentController::getImageInterfacePreviewData PHP Метод

getImageInterfacePreviewData() защищенный Метод

Will return an array with the following keys: "originalImageResourceUri": Uri for the original resource "previewImageResourceUri": Uri for a preview image with reduced size "originalDimensions": Dimensions for the original image (width, height, aspectRatio) "previewDimensions": Dimensions for the preview image (width, height) "object": object properties like the __identity and __type of the object
protected getImageInterfacePreviewData ( Neos\Media\Domain\Model\ImageInterface $image ) : array
$image Neos\Media\Domain\Model\ImageInterface The image to retrieve meta data for
Результат array
    protected function getImageInterfacePreviewData(ImageInterface $image)
    {
        // TODO: Now that we try to support all ImageInterface implementations we should use a strategy here to get the image properties for custom implementations
        if ($image instanceof ImageVariant) {
            $imageProperties = $this->getImageVariantPreviewData($image);
        } else {
            $imageProperties = $this->getImagePreviewData($image);
        }
        $imageProperties['object'] = $this->imageInterfaceArrayPresenter->convertFrom($image, 'string');
        return $imageProperties;
    }