@umbraco-cms/backoffice
    • Get the dimensions of an image from a URL.

      Parameters

      • url: string

        The URL of the image. It can be a local file (blob url) or a remote file.

      • Optionalopts: { maxHeight?: number; maxWidth?: number }

        Options for the image size.

        • OptionalmaxHeight?: number

          The maximum height of the image.

        • OptionalmaxWidth?: number

          The maximum width of the image.

      Returns Promise<
          {
              height: number;
              naturalHeight: number;
              naturalWidth: number;
              width: number;
          },
      >

      The dimensions of the image.

    MMNEPVFCICPMFPCPTTAAATR