Not a developer? Go to MovableType.com

Documentation

AssetProperty

Returns the additional metadata of the asset in context. Some of these properties only make sense for certain file types. For example, image_width and image_height apply only to images.

Attributes:

  • property (required)

    Specifies what property to return from the tag. Supported attribute values:

    • file_size

      asset's file size

    • image_width

      asset's width (for image only; otherwise returns 0)

    • image_height

      asset's height (for image only; otherwise returns 0)

    • description

      asset's description

  • format

    Used in conjunction with file_size property. Supported attribute values:

    • return raw size
    • 1 (default)

      auto format depending on the size

    • k

      size expressed in kilobytes

    • m

      size expressed in megabytes

Back