ImageViewHelper extends AbstractViewHelper
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <f:uri.image>
ViewHelper to resize, crop or convert a given image (if required) and return the URL to this processed file.
This ViewHelper should only be used for images within FAL storages, or where graphical operations shall be performed.
Note that when the contents of a non-FAL image are changed, an image may not show updated processed contents unless either the FAL record is updated/removed, or the temporary processed images are cleared.
Also note that image operations (cropping, scaling, converting) on non-FAL files may be changed in future TYPO3 versions, since those operations are coupled with FAL metadata. Each non-FAL image operation creates a "fake" FAL record, which may lead to problems.
For extension resource files, use <f:uri.resource>
instead.
External URLs are not processed and just returned as is.
<f:uri.image src="{variableWithFileadminLocation}" width="100c" />
<f:uri.image image="{imageObject}" maxWidth="400" maxHeight="400" fileExtension="webp" />
Tags
Table of Contents
Methods
- initializeArguments() : void
- render() : string
- Resizes the image (if required) and returns its path. If the image was not resized, the path will be equal to $src
Methods
initializeArguments()
public
initializeArguments() : void
render()
Resizes the image (if required) and returns its path. If the image was not resized, the path will be equal to $src
public
render() : string