Gallery.Image.Size.Bytes
Version: - integerSummary
Returns the file size of the image in bytes.
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetInteger("Gallery.Image.Size.Bytes")
Check if tag has a value
@if(!int.IsNullOrWhiteSpace(GetInteger("Gallery.Image.Size.Bytes"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
int storedTag = GetInteger("Gallery.Image.Size.Bytes");
}
Outputting the template tag
<!--@Gallery.Image.Size.Bytes-->
Check if integer has a value
<!--@If Defined(@Gallery.Image.Size.Bytes)-->
Let's output this tag here: <strong><!--@Gallery.Image.Size.Bytes--></strong>
<!--@EndIf(@Gallery.Image.Size.Bytes)-->