genshin-manager
    Preparing search index...

    Class ImageAssets

    Class for compiling information about image

    Index

    Constructors

    • Classes for handling images

      Parameters

      • name: string

        Image name

      • Optionalurl: string

        Image URL(Basically, no need to specify)

      Returns ImageAssets

    Properties

    imageBaseURL: string

    Image base URL

    imageType: null | string

    Image type

    mihoyoURL: string

    Image URL of mihoyo

    name: string

    Image name

    url: string

    Image URL

    Methods

    • Fetch image buffer

      Returns Promise<Buffer>

      Image buffer

    • Fetch image stream

      Parameters

      • OptionalhighWaterMark: number

        HighWaterMark

      Returns Promise<ReadStream>

      Image stream

    • Create a ImageAssets instance from the image URL

      Parameters

      • url: string

        Image URL

      Returns ImageAssets

      ImageAssets instance