Skip to main content

MediaFormat Object

Description

A specific format variant of a media file with dimensions and URL.

Declaration

type MediaFormat {
name: String
ext: String
mime: String
width: Int
height: Int
size: Int
url: String
key: String
}

Fields

NameTypeDescription
nameStringName of the format variant (e.g., "thumbnail", "banner", "large").
extStringFile extension for this format variant.
mimeStringMIME type of the format variant.
widthIntWidth of the media in pixels.
heightIntHeight of the media in pixels.
sizeIntFile size in bytes.
urlStringURL to access the formatted media file.
keyStringStorage key or identifier for the format variant.