Gallery.Image.Resolution

Version: - double  

Summary

Returns the resolution of the image.

Settings

The value is generated automatically.

Remarks

Using this tag will result in slower performance if using large original images (i.e. over 2000 px in width or 1 mb in size).

Examples

Outputting the template tag

@GetDouble("Gallery.Image.Resolution")

Check if tag has a value

@if(!double.IsNullOrWhiteSpace(GetDouble("Gallery.Image.Resolution"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ double storedTag = GetDouble("Gallery.Image.Resolution"); }

Outputting the template tag

<!--@Gallery.Image.Resolution-->

Check if double has a value

<!--@If Defined(@Gallery.Image.Resolution)--> Let's output this tag here: <strong><!--@Gallery.Image.Resolution--></strong> <!--@EndIf(@Gallery.Image.Resolution)-->