From b1d8f95b506e2d734876ef47ec0f4e1feb4f5618 Mon Sep 17 00:00:00 2001 From: Abraham Williams <4braham@gmail.com> Date: Fri, 3 Oct 2025 14:40:51 +0000 Subject: [PATCH] Add MetaDetails --- content/en/entities/MediaAttachment.md | 52 ++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/content/en/entities/MediaAttachment.md b/content/en/entities/MediaAttachment.md index d24b97f979..7680aa7490 100644 --- a/content/en/entities/MediaAttachment.md +++ b/content/en/entities/MediaAttachment.md @@ -206,6 +206,18 @@ aliases: [ May contain subtrees `small` and `original`, as well as various other top-level properties. +### `meta[small]` {{%optional%}} {#meta-small} + +**Description:** Details about the small preview version of the attachment.\ +**Type:** {{}} [MetaDetails](#MetaDetails) or null\ +**Version history:** + +### `meta[original]` {{%optional%}} {#meta-original} + +**Description:** Details about the original version of the attachment.\ +**Type:** {{}} [MetaDetails](#MetaDetails) or null\ +**Version history:** + ### `meta[focus]` {{%optional%}} {#meta-focus} **Description:** Coordinates that may be used for smart thumbnail cropping -- see [Focal points for cropped media thumbnails]({{< relref "api/guidelines#focal-points" >}}) for more.\ @@ -245,6 +257,46 @@ May contain subtrees `small` and `original`, as well as various other top-level 0.6.0 - added\ 3.5.0 - removed +## MetaDetails entity attributes {#MetaDetails} + +## Attributes + +### `width` {#width} + +**Description:** The width of the attachment in pixels.\ +**Type:** {{}} Integer, or null if the attachment is not visual\ +**Version history:** + +### `height` {#height} + +**Description:** The height of the attachment in pixels.\ +**Type:** {{}} Integer, or null if the attachment is not visual\ +**Version history:** + +### `frame_rate` {#frame_rate} + +**Description:** The frame rate of the video attachment.\ +**Type:** {{}} String (fraction), or null if the attachment is not a video\ +**Version history:** + +### `duration` {#duration} + +**Description:** The duration of the video attachment.\ +**Type:** {{}} Float, or null if the attachment is not video or audio\ +**Version history:** + +### `bitrate` {#bitrate} + +**Description:** The media bitrate of the video or audio attachment.\ +**Type:** {{}} Integer, or null if the attachment is an image\ +**Version history:** + +### `aspect` {#aspect} + +**Description:** The media aspect ratio of the video or image attachment.\ +**Type:** {{}} Float, or null if the attachment is not visual\ +**Version history:** + ## See also {{< page-relref ref="entities/Status#media_attachments" caption="Status (`media_attachments` attribute)" >}}