aspose / aspose-imaging-cloud
Aspose.Imaging Cloud PHP SDK
Requires
- php: >=5.6
- ext-json: *
- guzzlehttp/guzzle: ^6.3
- psr/http-message: ~1.0
Requires (Dev)
- phpunit/phpunit: ^4.8
- dev-master
- 23.5
- 22.4
- 21.12
- 21.11
- 21.6
- 21.2
- 20.12
- 20.9
- 20.8
- 20.7
- 20.6
- 20.5
- 20.4
- 20.3
- 20.2
- 20.1
- 19.12
- 19.10
- 19.9
- 19.8
- 19.7
- 19.6
- v19.4.1
- 19.4
- 19.1
- dev-development
- dev-IMAGINGCLOUD-655
- dev-IMAGINGCLOUD-644
- dev-IMAGINGCLOUD-620
- dev-IMAGINGCLOUD-388
- dev-IMAGINGCLOUD-426
- dev-IMAGINGCLOUD-579
- dev-IMAGINGCLOUD-559-1
- dev-IMAGINGCLOUD-574
- dev-IMAGINGCLOUD-559
- dev-IMAGINGCLOUD-547-1
- dev-IMAGINGCLOUD-548
- dev-IMAGINGCLOUD-547
- dev-IMAGINGCLOUD-516
- dev-IMAGINGCLOUD-532
- dev-IMAGINGCLOUD-529
- dev-IMAGINGCLOUD-238
- dev-IMAGINGCLOUD-278
- dev-IMAGINGCLOUD-454
- dev-IMAGINGCLOUD-488
- dev-IMAGINGCLOUD-477
- dev-IMAGINGCLOUD-497
- dev-IMAGINGCLOUD-457-examples
- dev-IMAGINGCLOUD-473
- dev-IMAGINGCLOUD-457
- dev-IMAGINGCLOUD-491
- dev-IMAGINGCLOUD-430
- dev-IMAGINGCLOUD-490
- dev-IMAGINGCLOUD-489
- dev-IMAGINGCLOUD-473-2
- dev-development_20.1
- dev-IMAGINGCLOUD-447
- dev-IMAGINGCLOUD-433
- dev-IMAGINGCLOUD-424
- dev-development_ai_19_12
- dev-IMAGINGCLOUD-230
- dev-IMAGINGCLOUD-389
- dev-IMAGINGCLOUD-427
- dev-IMAGINGCLOUD-432
- dev-IMAGINGCLOUD-365
- dev-IMAGINGCLOUD-411
- dev-IMAGINGCLOUD-406
- dev-IMAGINGCLOUD-322
- dev-IMAGINGCLOUD-353
- dev-IMAGINGCLOUD-378
- dev-IMAGINGCLOUD-370
- dev-IMAGINGCLOUD-339
- dev-IMAGINGCLOUD-381
- dev-IMAGINGCLOUD-384
- dev-IMAGINGCLOUD-335
- dev-IMAGINGCLOUD-216
- dev-IMAGINGCLOUD-356
- dev-IMAGINGCLOUD-304
- dev-IMAGINGCLOUD-303
- dev-PROBATIONIMAGING-509
- dev-development_ai_19_6
- dev-v19.4_prodLinkHotfix
- dev-IMAGINGAINET-107
- dev-IMAGINGCLOUD-274_AI_fix
- dev-IMAGINGCLOUD-274
- dev-development_v2
- dev-IMAGINGCLOUD-212
This package is not auto-updated.
Last update: 2024-12-13 02:51:45 UTC
README
Image Processing in Cloud via PHP 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 PHP SDK source code. This SDK allows you to work with Aspose.Imaging Cloud REST APIs in your PHP 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).
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
Save Image As
PDF, DICOM
Read Image Formats
DJVU, DICOM, CDR, CMX, ODG, DNG, EPS
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
- Sign Up. Before you begin, you need to sign up for an account on our Dashboard and retrieve your credentials.
- Minimum requirements. This SDK requires PHP 5.6 or later.
- Install Aspose.Imaging Cloud PHP SDK. Please, add the following Packagist package to your project.
Please, add the following to your composer.json as a dependency.
{ "require": { "aspose/aspose-imaging-cloud": ">=23.5" } }
Import the dependencies to your code as follows.
use \Aspose\Imaging\ImagingApi; use \Aspose\Imaging\Configuration; use \Aspose\Imaging\Model; use \Aspose\Imaging\Model\Requests;
- 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 JPG to PNG in PHP
// Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required). $config = new Configuration(); $config->setAppSid("MY_CLIENT_ID"); $config->setAppKey("MY_CLIENT_SECRET"); $api = new ImagingApi($config); $request = new ConvertImageRequest("sample.jpg", "png", "tempFolder", "My_Storage_Name"); $result = $api->convertImage($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:
- Set the baseUrl parameter according to your on-premise deployment, isMetered parameter to true and use optional API version and debug mode parameters if needed.
$imagingConfig = new Imaging\Configuration(); $imagingConfig->setBaseUrl("yourServiceUrl"); $imagingConfig->setOnPremise(true); $imagingApi = new Imaging\ImagingApi($imagingConfig);
- Set storage or storageName parameters for each request where they're present (mandatory!).
Content
You may check our full API endpoints list or 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
Product Page | Documentation | API Reference | Code Samples | Blog | Free Support | Free Trial