Aspose.Imaging Cloud SDK for Perl is also available as a released package in the [CPAN (Perl Archive Network)][6] . 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

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'});

}


*   [Working with Image Properties](https://www.aspose.com/docs/display/imagingcloud/Working+with+Image+Properties)
*   [Manipulating Images](https://www.aspose.com/docs/display/imagingcloud/Manipulating+Images)
*   [Working with TIFF Frames](https://www.aspose.com/docs/display/imagingcloud/Working+with+TIFF+Frames)

Start a Free Trial Today Start a free trial today – all you need is to [sign up][10] with the Aspose Cloud service. Once you have signed up, you are ready to try the powerful file processing features offered by Aspose Cloud.




[1]: https://blog.aspose.com/wp-content/uploads/sites/2/2016/06/aspose_imaging-for-cloud.png "Aspose.Imaging Cloud")](https://www.aspose.com/cloud/imaging-api.aspx
[2]: https://blog.aspose.com/wp-content/uploads/sites/2/2016/06/Aspose.Imaging-supported-file-formats.png "Aspose.Imaging Cloud")](https://www.aspose.com/cloud/imaging-api.aspx
[3]: https://www.aspose.com/docs/display/imagingcloud/Home
[4]: https://www.aspose.com/cloud/imaging-api.aspx
[5]: https://asposeimagingcloud.codeplex.com/SourceControl/latest#SDKs/Aspose.Imaging-Cloud-SDK-for-Perl/
[6]: https://metacpan.org/release/AsposeImagingCloud-ImagingApi/
[7]: https://metacpan.org/release/AsposeStorageCloud-StorageApi
[8]: https://www.aspose.com/docs/display/imagingcloud/Home
[9]: https://www.aspose.com/docs/display/imagingcloud/Developer+Guide
[10]: https://dashboard.aspose.cloud/