ViewHelper Documentation
uri.image
Resizes a given image (if required) and returns its relative path.
= Examples =
<f:uri.image src="EXT:myext/Resources/Public/typo3_logo.png" />
<f:uri.image image="{imageObject}" />
{f:uri.image(src: 'EXT:myext/Resources/Public/typo3_logo.png', minWidth: 30, maxWidth: 40)}
<f:uri.image src="NonExistingImage.png" />
Arguments
- src
- treatIdAsReference
- image
- crop
- cropVariant
- width
- height
- minWidth
- minHeight
- maxWidth
- maxHeight
- absolute
src string
src
treatIdAsReference anySimpleType
given src argument is a sys_file_reference record
image anySimpleType
image
crop anySimpleType
overrule cropping of image (setting to FALSE disables the cropping set in FileReference)
cropVariant string
select a cropping variant, in case multiple croppings have been specified or stored in FileReference
width string
width of the image. This can be a numeric value representing the fixed width of the image in pixels. But you can also perform simple calculations by adding "m" or "c" to the value. See imgResource.width for possible options.
height string
height of the image. This can be a numeric value representing the fixed height of the image in pixels. But you can also perform simple calculations by adding "m" or "c" to the value. See imgResource.width for possible options.
minWidth anySimpleType
minimum width of the image
minHeight anySimpleType
minimum height of the image
maxWidth anySimpleType
maximum width of the image
maxHeight anySimpleType
maximum height of the image
absolute anySimpleType
Force absolute URL