Definition at line 10 of file image.py.
◆ __init__()
| def pixabay.image.image.__init__ |
( |
|
self, |
|
|
|
data |
|
) |
| |
Init image object.
- Parameters
-
| data | data of image in JSON format |
- Returns
- image obj
Definition at line 15 of file image.py.
◆ download()
| def pixabay.image.image.download |
( |
|
self, |
|
|
|
dst, |
|
|
|
imtype = 'webformat' |
|
) |
| |
Download image to file.
- Parameters
-
| dst | location of file to save |
| imtype | type if image (webformat, preview, largeImage) (Default: webformat) |
Definition at line 156 of file image.py.
◆ downloadRaw()
| def pixabay.image.image.downloadRaw |
( |
|
self, |
|
|
|
imtype = 'webformat' |
|
) |
| |
Download image to varaible.
- Parameters
-
| imtype | type if image (webformat, preview, largeImage) (Default: webformat) |
- Returns
- byte array of image
Definition at line 132 of file image.py.
◆ getPublishedDate()
| def pixabay.image.image.getPublishedDate |
( |
|
self | ) |
|
Get published date of image.
- Returns
- datetime UTC of image publication
Definition at line 162 of file image.py.
The documentation for this class was generated from the following file: