Documentation · ViewHelper reference

XSD schema file | vhs 2.1.3

Media / Image / HeightViewHelper

Returns the height of the provided image file in pixels

  • Tag usage example

    <v:media.image.height src="NULL" treatIdAsUid="1" treatIdAsReference="1">
    	<!-- tag content - may be ignored! -->
  • Inline usage example

    {v:media.image.height(src: 'NULL', treatIdAsUid: 1, treatIdAsReference: 1)}


Argument Description Type

Path to or id of the image file to determine info for.


If TRUE, the path argument is treated as a reference uid and will be resolved to a resource via sysfilereference.


If TRUE, the path argument is treated as a resource uid.

Required attribute

Revision history

commit 4a9d39fcf497d6a5dbd11bc1ec21ffaf8036a637
Author: Björn Fromme <*****>
Date:   Tue Jan 1 18:50:50 2013 +0100

    [FEATURE] Added image width, height and mimetype view helpers

commit 078017b44528630ed2df1d6685ee01484a5e47cc
Author: Björn Fromme <*****>
Date:   Sun May 26 16:06:33 2013 +0200

    [TASK] Adhere coding guidelines

commit da31bad1d9bb058c072ddb5591e8ed907a1ae8e1
Author: Claus Due <*****>
Date:   Tue Dec 31 23:08:37 2013 +0100

    [TASK] Happy new year!

commit 52bd6e41ccfef3d8193b350153912a9716e6a087
Author: Benjamin Rau <*****>
Date:   Tue Apr 1 21:09:00 2014 +0200

    [TASK] CGL compliance

commit da7677bc74f14e9a9300e4ba4487e52c3cb97642
Author: Claus Due <*****>
Date:   Sun Apr 20 01:13:33 2014 +0200

    [TASK] Switch to namespaces

commit 8bb2fc5ee124ba19b0a0ab8e061c9a153fc4651f
Author: Xaver Maierhofer <*****>
Date:   Sun Jan 18 17:56:13 2015 +0100

    [TASK] Reference Copyright to file