Class for compiling information about image

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

  • Classes for handling images

    Parameters

    Returns void

  • Create a ImageAssets instance from the image URL

    Parameters

    • url: string

      Image URL

    Returns ImageAssets

    ImageAssets instance