woob.capabilities.image
¶
- class BaseImage(id='', url=NotLoaded, backend=None)[source]¶
Bases:
_BaseImage
Represents an image file.
- Variables:
url – (
str
) urltitle – (
str
) File titleext – (
str
) File extensionmime_type – (
str
) MIME Typeauthor – (
str
) File authordescription – (
str
) File descriptiondate – (
date
,datetime
) File publication datelast_update – (
date
,datetime
) Last update or last modified date (default: Not available)size – (
int
) File size in bytes (default: Not available)rating_max – (
int
,float
) Maximum rating (default: Not available)license – (
str
) License namensfw – (
bool
) Is this Not Safe For Work (default: False)thumbnail – (
Thumbnail
) Thumbnail of the imagedata – (
bytes
) Data of image
- class Thumbnail(url='')[source]¶
Bases:
_BaseImage
Thumbnail of an image.
- Variables:
url – (
str
) urltitle – (
str
) File titleext – (
str
) File extensionmime_type – (
str
) MIME Typeauthor – (
str
) File authordescription – (
str
) File descriptiondate – (
date
,datetime
) File publication datelast_update – (
date
,datetime
) Last update or last modified date (default: Not available)size – (
int
) File size in bytes (default: Not available)rating_max – (
int
,float
) Maximum rating (default: Not available)license – (
str
) License namedata – (
bytes
) Data