Export PICTURE object to TIFF format file using Cells Cloud SDK for Python
API
POST
https://api.aspose.cloud/v3.0/cells/export
Export PICTURE object to TIFF file from Excel file is a complex task. Export PICTURE to TIFF format transitions is performed by our Python SDK while maintaining the source PICTURE spreadsheet's main structural and logical content. Our Python library is a professional solution to export PICTURE objects to TIFF format files online. This Cloud SDK gives Python developers powerful functionality and perfect TIFF output.
Code example in Python using REST API to export PICTURE to TIFF format from spreadsheet
# For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-python/
import os
import base64
from asposecellscloud.apis.light_cells_api import LightCellsApi
cells_api = LightCellsApi(os.getenv('ProductClientId'),os.getenv('ProductClientSecret'))
files ={
"myDocument.xlsx" : "c:/myDocument.xlsx",
"Book1.xlsx" : "c:/Book1.xlsx"
}
result = cells_api.post_export(files ,"picture","tiff")
base64_string = result.files[0].file_content
base64_bytes = base64_string.encode("ascii")
sample_string_bytes = base64.b64decode(base64_bytes)
f = open(result.files[0].filename, 'w+b')
f.write(sample_string_bytes)
f.close()
How to use Cells Cloud SDK for Python to export objects from Excel PICTURE to TIFF
- Register an account at Dashboard to get free API quota & authorization details
- Initialize the Cells API with your Client ID, Client Secret, Base URL, and API version.
- Call post_export method to get the resultant stream
System Requirements
- Python 2.7 or newer
- Python 3.10 or newer