Attention
TYPO3 v12 has reached end-of-life as of April 30th 2026 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v12 here: TYPO3 ELTS.
imgResource
The imgResource function relates to modifications of
pictures. Its main usage is the property file of the
IMAGE object.
This, for example, allows an image to be resized:
It is also possible to set minimum or maximum dimensions:
temp.myImage = IMAGE
temp.myImage {
file = toplogo.gif
# maximum size
file.maxW = 200
file.maxH = 300
# minimum size
file.minW = 100
file.minH = 120
}
img also provides direct access to
ImageMagick/GraphicsMagick features: