Attention

TYPO3 v8 has reached its end-of-life March 31st, 2020 and is not maintained by the community anymore. Looking for a stable version? Use the version switch on the top left.

You can order Extended Long Term Support (ELTS) 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:

temp.myImage = IMAGE
temp.myImage {
   file = toplogo.gif
   file.width = 200
   file.height = 300
}

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
}

imgResource also provides direct access to ImageMagick/GraphicsMagick features:

temp.myImage = IMAGE
temp.myImage {
   file = toplogo.gif
   file.params = -rotate 90
}