Downloads image data over HTTP or HTTPS.
More...
Downloads image data over HTTP or HTTPS.
◆ download()
| DownloadedImage image.image_downloader.ImageDownloader.download |
( |
| self, |
|
|
str | url ) |
Download raw image data from a URL.
- Parameters
-
| url | Non-empty HTTP or HTTPS URL. |
- Returns
- Final response URL, raw bytes, and reported content type.
- Exceptions
-
| ValueError | if the URL is empty or uses another scheme. |
| ImageDownloadError | if the request fails, the response is not an image, or the payload exceeds the configured size limit. |
The documentation for this class was generated from the following file:
- controllers/image/image_downloader.py