• Convert an image into a data url.

    Parameters

    • url: string

      A url that points to an image.

    Returns Promise<string>

    A data url that represents the same image.