Image data used to create a texture. Image can be referenced by URI or bufferView index. mimeType is required in the latter case

interface IImage {
    extensions?: Record<string, unknown>;
    extras?: Record<string, unknown>;
    name?: string;
    uri?: string;
    mimeType?: string;
    bufferView?: number;
}

Hierarchy (view full)

Properties

extensions?: Record<string, unknown>

Dictionary object with extension-specific objects

extras?: Record<string, unknown>

Application-Specific data

name?: string

The user-defined name of this object

uri?: string

The uri of the image. Relative paths are relative to the .gltf file. Instead of referencing an external file, the uri can also be a data-uri. The image format must be jpg or png

mimeType?: string

The image's MIME type

bufferView?: number

The index of the bufferView that contains the image. Use this instead of the image's uri property