Methods
(inner) downloadImage(imageURL, localPath) → {Promise}
Downloads an image from the given URL and saves it to the specified location.
Parameters:
Name | Type | Description |
---|---|---|
imageURL |
String | URL of the image to download. |
localPath |
String | Absolute path of the location to save to. |
- Source:
Returns:
Promise object represents the path of the saved image.
- Type
- Promise