[TYPO3-english] Original width and height of image in fluid

Vikram Mandal vikram at fivee.in
Wed Sep 6 07:24:37 CEST 2017


On 09/05/2017 12:55 PM, Jigal van Hemert wrote:
> 
> If 'image' is the file reference object it would be 
> {image.originalFile.width}
> 
> 

I am trying to get the width and height of an image in news. So I tried :

{newsItem.firstFalImagePreview.originalFile.width}

{newsItem.firstFalImagePreview.width}

But none seems to work.

newsItem.firstFalImagePreview returns 
\TYPO3\CMS\Extbase\Domain\Model\FileReference

-- 
Vikram
=============================
http://T3IN.COM
FiveE Technologies.
=============================


More information about the TYPO3-english mailing list