Image๏
Functionality relating to reading and writing images.
Functions:
|
Open Image object from a given URL or file path |
|
Extracts bytes from a given Image file. |
- musify.file.image.open_image(source)๏
Open Image object from a given URL or file path
- Returns:
Image
โ The loadedImage.Image
- Raises:
ImageLoadError โ If the image cannot be loaded.
ModuleImportError โ If required modules are not installed.
- musify.file.image.get_image_bytes(image)๏
Extracts bytes from a given Image file.
- Raises:
ModuleImportError โ If required modules are not installed.
- Return type:
bytes