Sanity Library Reference Docs
    Preparing search index...

    Interface ThumbnailTransformOptions

    Thumbnail rendition (single frame) options.

    interface ThumbnailTransformOptions {
        fit?: FitMode;
        format?: StillImageFormat;
        height?: number;
        time?: number;
        width?: number;
    }
    Index

    Properties

    fit?: FitMode

    Resize / fit mode applied to the extracted frame.

    Output image format.

    height?: number

    Pixel height of the thumbnail frame.

    time?: number

    Timestamp (seconds) from which to grab the frame.

    width?: number

    Pixel width of the thumbnail frame.