Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 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 v10 here: TYPO3 ELTS.
IMG_RESOURCE
Objects of type IMG_RESOURCE returns a reference to an image, possibly wrapped with Properties. It can be used, for example, for putting background images in tables or table rows or to import an image in your own include scripts.
The array $GLOBALS
is set to the info
array of the resulting image resource (if any) and contains width,
height and so on (similar to how $GLOBALS
does for the cObject IMAGE).
Depending on your use case you might prefer using the cObject
IMAGE, which creates a complete img
tag.
Properties
cache
-
- Type
- cache
See cache function description for details.
file
-
- Type
- ->imgResource
stdWrap
-
- Type
- ->stdWrap