Neos.Neos/Classes/Controller/Backend/ContentController.php
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;
    }
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;
    }
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 ; }
Returns important meta data for the given object implementing ImageInterface.

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

@param ImageInterface $image The image to retrieve meta data for
@return array
Returns important meta data for the given object implementing ImageInterface .