Voog.com

Asset

Describes a file uploaded by you or any other user who has access to edit your site. Assets can normally be accessed through a media set.

List of available attributes

content_type

Content type of the asset. E.g. image/jpeg.

filename

File name of the asset.

height

Returns height of an image in pixels.

id

Unique identifier of the asset.

image?

Returns true if the asset is an image.

large_thumbnail_url

If current asset is an image, it returns full path to large thumbnail.

medium_thumbnail_url

If current asset is an image, it returns full path to medium sized thumbnail.

preview_thumbnail

Returns the medium-sized thumbnail.

schemeless_url

Returns the full URL to the asset without the scheme.

sizes

Returns an array of image size variants.

to_json

Serializes the asset into a JSON string.

url

Returns the full URL to the asset without the scheme.

width

Returns width of an image in pixels.