ImageExportFormat
Specifies the export format for images.
from nutrient_sdk import ImageExportFormatValues
| Name | Value | Description |
|---|---|---|
ImageExportFormat.AUTO | 0 | Auto-detect from the destination filename extension. When exporting via a filename, the extension determines the format (.tif/.tiff → Tiff, .png → Png, .jpg/.jpeg → Jpeg, .bmp → Bmp). When exporting via a Stream, the caller must set this to an explicit format; Auto is rejected because no extension is available. |
ImageExportFormat.TIFF | 1 | TIFF image format. Multi-page documents are written as multi-page TIFF. |
ImageExportFormat.PNG | 2 | PNG image format. Multi-page documents produce numbered files (e.g., output-1.png, output-2.png). |
ImageExportFormat.JPEG | 3 | JPEG image format. Multi-page documents produce numbered files (e.g., output-1.jpg, output-2.jpg). |
ImageExportFormat.BMP | 4 | BMP image format. Multi-page documents produce numbered files (e.g., output-1.bmp, output-2.bmp). |
Usage Example
from nutrient_sdk import ImageExportFormat
# Access enum valuesvalue = ImageExportFormat.AUTOprint(f"Value: {value}") # Output: Value: ImageExportFormat.AUTOprint(f"Integer value: {value.value}") # Output: Integer value: 0