Neos\Neos\Controller\Backend\ContentController::imageWithMetadataAction PHP Méthode

imageWithMetadataAction() public méthode

Fetch the metadata for a given image
public imageWithMetadataAction ( Neos\Media\Domain\Model\ImageInterface $image ) : string
$image Neos\Media\Domain\Model\ImageInterface
Résultat string JSON encoded response
    public function imageWithMetadataAction(ImageInterface $image)
    {
        $this->response->setHeader('Content-Type', 'application/json');
        $imageProperties = $this->getImageInterfacePreviewData($image);
        return json_encode($imageProperties);
    }