Forum for discussing general topics related to Couch.
3 posts Page 1 of 1
deleted
Hi,

No Couch tags to output an image's height and width parameters but we can always fall back upon PHP. Assuming 'my_image' contains our image, the following code should output the kind of HTML markup you want.
Code: Select all
<cms:php>
    list( $width, $height, $type, $attr ) = @getimagesize( "<cms:show my_image />" );
    echo( '<img src="<cms:show my_image />" width="'.$width.'" height="'.$height.'" />' );
</cms:php>

Hope this helps.
deleted
3 posts Page 1 of 1