Interface SanityImageAssetDocumentInternal

interface SanityImageAssetDocument {
    _createdAt: string;
    _id: string;
    _originalId?: string;
    _rev: string;
    _type: string;
    _updatedAt: string;
    assetId: string;
    extension: string;
    metadata: {
        _type: "sanity.imageMetadata";
        blurHash?: string;
        dimensions: {
            _type: "sanity.imageDimensions";
            aspectRatio: number;
            height: number;
            width: number;
        };
        exif?: { _type: "sanity.imageExifMetadata"; [key: string]: any };
        hasAlpha: boolean;
        image?: { _type: "sanity.imageExifTags"; [key: string]: any };
        isOpaque: boolean;
        lqip?: string;
        palette?: {
            _type: "sanity.imagePalette";
            darkMuted?: SanityImagePalette;
            darkVibrant?: SanityImagePalette;
            dominant?: SanityImagePalette;
            lightMuted?: SanityImagePalette;
            lightVibrant?: SanityImagePalette;
            muted?: SanityImagePalette;
            vibrant?: SanityImagePalette;
        };
    };
    mimeType: string;
    originalFilename?: string;
    path: string;
    sha1hash: string;
    size: number;
    uploadId?: string;
    url: string;
    [key: string]: any;
}

Hierarchy (View Summary)

Indexable

  • [key: string]: any

Properties

_createdAt: string
_id: string
_originalId?: string

Present when perspective is set to previewDrafts

_rev: string
_type: string
_updatedAt: string
assetId: string
extension: string
metadata: {
    _type: "sanity.imageMetadata";
    blurHash?: string;
    dimensions: {
        _type: "sanity.imageDimensions";
        aspectRatio: number;
        height: number;
        width: number;
    };
    exif?: { _type: "sanity.imageExifMetadata"; [key: string]: any };
    hasAlpha: boolean;
    image?: { _type: "sanity.imageExifTags"; [key: string]: any };
    isOpaque: boolean;
    lqip?: string;
    palette?: {
        _type: "sanity.imagePalette";
        darkMuted?: SanityImagePalette;
        darkVibrant?: SanityImagePalette;
        dominant?: SanityImagePalette;
        lightMuted?: SanityImagePalette;
        lightVibrant?: SanityImagePalette;
        muted?: SanityImagePalette;
        vibrant?: SanityImagePalette;
    };
}
mimeType: string
originalFilename?: string
path: string
sha1hash: string
size: number
uploadId?: string
url: string