save method
Contents
[
Hide
]save
Saves the image to a file.
def save(self, filename):
...
| Parameter | Type | Description |
|---|---|---|
| filename | str | The path to the file where the image will be saved. |
save
Saves the image to a file in the specified format.
def save(self, filename, format):
...
| Parameter | Type | Description |
|---|---|---|
| filename | str | The path to the file where the image will be saved. |
| format | ImageFormat | The image format. |
save
Saves the image to a stream in the specified format.
def save(self, stream, format):
...
| Parameter | Type | Description |
|---|---|---|
| stream | io.RawIOBase | The stream where the image will be saved. |
| format | ImageFormat | The image format. |
save
Saves the image to a file in the specified format and quality.
def save(self, filename, format, quality):
...
| Parameter | Type | Description |
|---|---|---|
| filename | str | The path to the file where the image will be saved. |
| format | ImageFormat | The image format. |
| quality | int | The quality of the saved image (0 to 100). This parameter only affects saving in ImageFormat.JPEG; for all other formats, it is ignored. |
save
Saves the image to a stream in the specified format and quality.
def save(self, stream, format, quality):
...
| Parameter | Type | Description |
|---|---|---|
| stream | io.RawIOBase | The stream where the image will be saved. |
| format | ImageFormat | The image format. |
| quality | int | The quality of the saved image (0 to 100). This parameter only affects saving in ImageFormat.JPEG; for all other formats, it is ignored. |
See Also
- class
IImage - enumeration
ImageFormat - module
aspose.slides - library
Aspose.Slides