• Convenience function for loading an image with a Promise interface. This function works in both Node.js and Web browsers; however, the src must be a string in Web browsers (it can only be a Buffer in Node.js).

    Parameters

    • src: string | Buffer

      URL, data: URI or (Node.js only) a local file path or Buffer instance.

    • Optional options: any

    Returns Promise<Image>

Generated using TypeDoc