A media item represents either a user uploaded image or a clip art image. It can be a raster image (PNG, JPG, TIFF and GIF) or a PDF document. In case of PDF's multi page media items are supported. Within MegaEdit, the first page would be the main media item, the other pages then children. This is an abstract interface - in actual use there are either UserMediaItem or ClipartItem instances.

Hierarchy

Properties

height: number

The height in pixels

name: string

The media item name - usually the file name

original: string

The original media item URL in full resolution. This is only available for user uploaded images and for cliparts if configured in admin to provide the full asset.

preview: string

The relative URL for the preview of the media item. The preview has a medium resolution.

thumbnail: string

The relative URL for the thumbnail. The thumbnail has a low resolution.

type: MediaType

The type of the media item. This can be either Media or Clipart.

width: number

The width in pixels

Generated using TypeDoc