Perl Cloud SDK to work with image conversion, manipulation, properties and TIFF frames Using Powerful Aspose.Imaging Cloud APIs

Aspose.Imaging Cloud

Aspose.Imaging Cloud’s platform independent image manipulation API is a true REST API that can be used with any language: .NET, Java, Perl, PHP, Ruby, Rails, Python, Node.js and many more. You can use it with any platform — web, desktop, mobile, and cloud. Aspose.Imaging Cloud lets you use a REST API to inspect, convert, and transform images in the cloud. It supports the most popular image formats such as PSD, PNG, GIF, BMP, TIFF, and JPEG, and conversion between them. Aspose.Imaging Cloud also provides a rich set of features for manipulating images on-the-fly with cloud based image transformations. You can resize, crop and/or rotate images various ways by simply creating a request that includes the correct transformation instructions. The most demanding imaging routines, for example TIFF concatenation and image conversion to fax compatible format, are available through efficient and reliable specialized resources. What’s new in the latest release This is a major release for Aspose.Imaging Cloud SDK for Perl. It covers all the Aspose.Imaging Cloud APIs. This SDK provides a complete solution to work with cloud images in perl using powerful Aspose.Imaging Cloud APIs, so you can manipulate & convert images in the cloud seamlessly. Source Code Repository Complete source code of this release of Aspose.Imaging Cloud SDK for Perl is freely available on your favorite GitHub and Codeplex repositories. Aspose.Imaging Cloud SDK for Perl is also available as a released package in the CPAN (Perl Archive Network) . You can bypass GitHub source code repository and depend directly on the released package by installing from cpan: Aspose.Imaging Cloud SDK for Perl – CPAN installation

sudo cpan AsposeImagingCloud::ImagingApi
You can also manually build the module by downloading the code and executing the following in the root directory of the download:

perl Build.PL
./Build
./Build test
./Build install
Data In order to manipulate any files, you first need to upload them to the Aspose cloud storage or 3rd party cloud storage using Aspose.Storage Cloud SDK for Perl. Quick SDK Tutorial

use lib 'lib';
use strict;
use warnings;
use File::Slurp; # From CPAN

use AsposeImagingCloud::ImagingApi;
use AsposeImagingCloud::ApiClient;
use AsposeImagingCloud::Configuration;

$AsposeImagingCloud::Configuration::app_sid = 'XXX';
$AsposeImagingCloud::Configuration::api_key = 'XXX';

$AsposeImagingCloud::Configuration::debug = 1;

#Instantiate Aspose.Imaging API SDK
my $imagingApi = AsposeImagingCloud::ImagingApi->new();

my $data_path = '../data/';

#set input file name
my $name = 'sample.bmp';
my $bitsPerPixel = 24;
my $horizontalResolution = 300;
my $verticalResolution = 300;

#invoke Aspose.Imaging Cloud SDK API to update BMP specific properties without using cloud storage
my $response = $imagingApi->PostImageBmp(bitsPerPixel => $bitsPerPixel, horizontalResolution => $horizontalResolution, verticalResolution => $verticalResolution, file => $data_path.$name);

if($response->{'Status'} eq 'OK'){

    my $output_file = 'C:/temp/'. $name;
	write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
Aspose.Imaging Cloud API Documentation Aspose.Imaging Cloud Documentation is available to guide developers to get familiar with the specific resources and operations within the Aspose.Imaging Cloud REST API. Aspose.Imaging Cloud SDK for Perl Examples Aspose.Imaging Cloud SDK for Perl Examples are also available to guide developers to get familiar with SDK and its usage to invoke resources and operations using the Aspose.Imaging Cloud REST API. Please see the SDK examples of following categories. Start a Free Trial Today Start a free trial today – all you need is to sign up with the Aspose Cloud service. Once you have signed up, you are ready to try the powerful file processing features offered by Aspose Cloud.