Constructors

Methods

Constructors

Methods

  • Returns the URI of the image with the given extension.

    Parameters

    • image: HitomiImage

      The image object to get the URI of

    • extension: ImageExtensions

      The extension of the image to get

    • Optionaloptions: { isSmall?: boolean; isThumbnail?: boolean }

      Optional object to specify the type of the image

      • OptionalisSmall?: boolean

        Whether the image is a small image

      • OptionalisThumbnail?: boolean

        Whether the image is a thumbnail

    Returns string

    • The URI of the image
    • If the image does not have the given extension
    • If the subdomain codes are not synchronized
    • If the image is not a thumbnail and is small
  • Synchronizes the subdomain codes and path codes.

    Returns Promise<void>

    • If the subdomain codes contain an invalid value