class ImageViewHelper extends AbstractViewHelper (View source)

Renders the src path of a thumbnail image of a given Neos.Media image instance

= Examples =

{neos.media:uri.image(image: imageObject)}

<output>
(depending on the image)
_Resources/Persistent/b29[...]95d.jpeg
</output>

<code title="Rendering an image path with scaling at a given width only">
{neos.media:uri.image(image: imageObject, maximumWidth: 80)}
(depending on the image; has scaled keeping the aspect ratio) _Resources/Persistent/b29[...]95d.jpeg

Properties

protected ThumbnailService $thumbnailService
protected AssetService $assetService

Methods

void
initializeArguments()

No description

string
render()

Renders the path to a thumbnail image, created from a given image.

Details

void initializeArguments()

No description

Return Value

void

string render()

Renders the path to a thumbnail image, created from a given image.

Return Value

string

the relative image path, to be used as src attribute for tags

Exceptions

MissingActionNameException
AssetServiceException
ThumbnailServiceException