aseprite-io - v0.1.0
    Preparing search index...

    Type Alias AsepriteErrorCode

    AsepriteErrorCode:
        | "UnexpectedEof"
        | "InvalidMagic"
        | "UnsupportedColorDepth"
        | "FrameOutOfBounds"
        | "PixelSizeMismatch"
        | "InvalidFrameRange"
        | "MissingPalette"
        | "InvalidChunkSize"
        | "UnsupportedPropertyType"
        | "UnsupportedTileBitDepth"
        | "FormatLimitExceeded"
        | "DecompressionFailed"

    Machine-readable category of an AsepriteError.

    Type Declaration

    • "UnexpectedEof"

      The input ended before a complete structure could be read.

    • "InvalidMagic"

      The file or a frame does not start with the expected magic number.

    • "UnsupportedColorDepth"

      The header declares a color depth other than 8, 16 or 32 bits.

    • "FrameOutOfBounds"

      A frame index is out of bounds.

    • "PixelSizeMismatch"

      A pixel buffer does not match width * height * bytesPerPixel.

    • "InvalidFrameRange"

      A tag's frame range is invalid or extends beyond the last frame.

    • "MissingPalette"

      Indexed color mode requires a palette, but none was set.

    • "InvalidChunkSize"

      A chunk's declared size is invalid.

    • "UnsupportedPropertyType"

      A user-data property type ID is not recognized.

    • "UnsupportedTileBitDepth"

      A tilemap cel uses a bit width the data model cannot preserve.

    • "FormatLimitExceeded"

      A value exceeds a limit of the file format (e.g. more than 256 palette entries).

    • "DecompressionFailed"

      Zlib-compressed data could not be decompressed.