Attention

TYPO3 v7 has reached its end-of-life November 30th, 2018 and is not maintained by the community anymore. Looking for a stable version? Use the version switch on the top left.

There is no further ELTS support. It is recommended that you upgrade your project and use a supported version of TYPO3.

IMG_RESOURCE

Returns a reference to an image, possibly wrapped with stdWrap. Can for example be used for putting background images in tables or table-rows or to import an image in your own include-scripts.

The array $GLOBALS['TSFE']->lastImgResourceInfo is set to the info- array of the resulting image resource (if any) and contains width, height and so on (similar to how $GLOBALS['TSFE']->lastImageInfo does for the cObject IMAGE).

Depending on your use case you might prefer using the cObject IMAGE, which creates a complete img-tag.

Property

file

Data type

imgResource

Property

stdWrap

Data type

->stdWrap

[tsref:(cObject).IMG_RESOURCE]