Skip to main content

Aspose.Imaging Cloud Python SDK

Project description

PyPI PyPI - Python Version PyPI - Implementation GitHub license

Image Processing in Cloud via Python REST API

Aspose.Imaging Cloud is a true REST API that enables you to perform a wide range of image processing operations including creation, manipulation and conversion in the cloud, with zero initial costs. Our Cloud SDKs are wrappers around REST API in various programming languages, allowing you to process images in language of your choice quickly and easily, gaining all benefits of strong types and IDE highlights.

This repository contains Aspose.Imaging Cloud Python SDK source code. This SDK allows you to work with Aspose.Imaging Cloud REST APIs in your Python applications quickly and easily, with zero initial cost.

To use this SDK, you will need Client ID and Client secret which can be looked up at Aspose Cloud Dashboard (free registration in Aspose Cloud is required for this).

The solution is updated using code generator.

Image Processing Features

  • Fetch or update properties of cloud-hosted images.
  • Scale, flip, crop, and export an image with a single API call.
  • Resize, crop, flip, convert, and export an image to other supported formats.
  • Update image parameters of JPEG2000 & WEBP images.
  • Access and multi-frame TIFF image and extract the desired frames from it.
  • Rotate, flip, crop, resize, or fetch properties of the selected TIFF frame.
  • Merge multiple TIFF images.

Read & Write Image Formats

BMP, GIF, JPEG, JPEG2000, PSD, TIFF, WEBP, PNG, WMF, EMF, SVG, TGA, APNG

Save Image As

PDF, DICOM

Read Image Formats

DJVU, DICOM, CDR, CMX, ODG, DNG, EPS, EMZ, WMZ, SVGZ

Enhancements in Version 20.12

  • Enhanced the EPS file format inheritance to support rotate, resize, flip, etc. operations as vector images support.
  • Improved image loading, conversion, and export features.
  • Added the JavaScript SDK.

Enhancements in Version 20.9

  • Resumed the support of Android SDK and updated reference to Aspose.Imaging and Aspose.PSD.

Enhancements in Version 20.10

  • Support for additional image formats in Object Detection.
  • Support to load and convert EPS files to PDF/A format.

Storage API support

Since version 19.4, SDK includes support of storage operations for better user experience and unification, so now there's no need to use 2 different SDKs!

It gives you an ability to:

  • Upload, download, copy, move and delete files, including versions handling (if you are using Cloud storage that supports this feature - true by default)
  • Create, copy, move and delete folders
  • Copy and move files and folders accross separate storages in scope of a single operation
  • Check if certain file, folder or storage exists

Detalied official documentation can be found at the following link.

Getting Started

  1. Sign Up. Before you begin, you need to sign up for an account on our Dashboard and retrieve your credentials.
  2. Minimum requirements. This SDK requires Python 2.7 or later.
  3. Install Aspose.Imaging Cloud Python SDK.

Please, add the following PyPi package to your requirements.txt.

aspose-imaging-cloud>=22.4

Or install it using command line.

pip install aspose-imaging-cloud

Import the dependencies to your code as follows.

import aspose-imaging-cloud
  1. Using the SDK. The best way to become familiar with how to use the SDK is to read the Developer Guide. The Getting Started Guide will help you to become familiar with the common concepts.

Quick Examples

Please, look at Examples document for basic usage or use the Examples folder for more sophisticated scenarios.

Convert PNG to JPG in Python

	# Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).
	imaging_api = ImagingApi("MY_CLIENT_SECRET", "MY_CLIENT_ID")

	request = ConvertImageRequest("sample.png", "jpg", "tempFolder", "My_Storage_Name")
	response = imaging_api.convert_image(request)

Aspose Cloud-hosted service VS on-premise deployment (experimental feature)

Starting from v19.7, you can choose either to use Aspose Cloud-hosted image processing service (the standard way) or the Docker image from Docker Hub deployed on-premise to serve the requests. The details about key differences and deployment process will be described on the dedicated Docker Hub page as soon as it's released.

To succeed with your on-premise service usage by the SDK, you need to:

  1. Use the new API class constructor with base URL required parameter, API version and debug mode optional parameters.
ImagingApi(base_url='yourServiceUrl')
  1. Set storage or storageName parameters for each request where they're present (mandatory!).

Content

You may check our full API endpoints list and models available in the SDK.

Dependencies

Licensing

All Aspose.Imaging Cloud SDKs, helper scripts and templates are licensed under MIT License.

Aspose.Imaging Cloud SDKs in Popular Languages

.NET Java PHP Python Ruby Node.js Android
GitHub GitHub GitHub GitHub GitHub GitHub GitHub
NuGet Maven Composer PIP GEM NPM Maven

Product Page | Documentation | API Reference | Code Samples | Blog | Free Support | Free Trial

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aspose-imaging-cloud-22.4.0.tar.gz (98.4 kB view details)

Uploaded Source

Built Distribution

aspose_imaging_cloud-22.4.0-py3-none-any.whl (335.0 kB view details)

Uploaded Python 3

File details

Details for the file aspose-imaging-cloud-22.4.0.tar.gz.

File metadata

  • Download URL: aspose-imaging-cloud-22.4.0.tar.gz
  • Upload date:
  • Size: 98.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for aspose-imaging-cloud-22.4.0.tar.gz
Algorithm Hash digest
SHA256 252c42a7e5126e96728324ec50057dd2ff4e85d02b3d9bc1282cc1a0d92e0efe
MD5 02fcab6b4f7ffb0ff3524018958045cf
BLAKE2b-256 3c6ded6facea48a759c32d1a7470f75927f38cded51d19d0b4df129c13698f82

See more details on using hashes here.

File details

Details for the file aspose_imaging_cloud-22.4.0-py3-none-any.whl.

File metadata

  • Download URL: aspose_imaging_cloud-22.4.0-py3-none-any.whl
  • Upload date:
  • Size: 335.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for aspose_imaging_cloud-22.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e95d6d63e86e7b9ec4bfc920a68458ef1382b9142c214d78d7ce816f980c35ac
MD5 c41df8694d7661096a94c7109d147c29
BLAKE2b-256 e3bb681fb35ddf34c4e98c490d10b054181b906e37f4140cd13682e0f2783c3f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page