tumblr.js - v5.0.1
    Preparing search index...

    Interface MediaObject

    Many content blocks and their components include media objects which link directly to media assets. These media objects share a common JSON object format.

    interface MediaObject {
        cropped?: boolean;
        has_original_dimensions?: boolean;
        height?: number;
        original_dimensions_missing?: boolean;
        type?: string;
        url: string;
        width?: number;
    }
    Index

    Properties

    cropped?: boolean

    This indicates whether this media object is a cropped version of the original media

    has_original_dimensions?: boolean

    This indicates whether this media object has the same dimensions as the original media

    height?: number

    The height of the media asset, if that makes sense (for images and videos, but not for audio)

    original_dimensions_missing?: boolean

    For display purposes, this indicates whether the dimensions are defaults

    type?: string

    The MIME type of the media asset, or a best approximation will be made based on the given URL

    "image/jpg"
    
    url: string

    The canonical URL of the media asset

    width?: number

    The width of the media asset, if that makes sense (for images and videos, but not for audio)