Skip to content

Instantly share code, notes, and snippets.

@aspose-imaging
aspose-imaging / Aspose.Imaging-for-Cloud-for-PHP
Last active March 26, 2017 21:11
The GIST contains PHP code snippets for examples of Aspose.Imaging for Cloud.
Aspose.Imaging-for-Cloud-for-PHP
@aspose-imaging
aspose-imaging / Aspose.Imaging-for-Cloud-for-Objective-C
Last active March 26, 2017 21:10
Aspose.Imaging-for-Cloud-for-Objective-C
The GIST contains Objective C code snippets for examples of Aspose.Imaging for Cloud.
@aspose-imaging
aspose-imaging / ConvertImageFormat.py
Last active March 9, 2017 13:51
Aspose_Imaging_Cloud_Python
import asposeimagingcloud
from asposeimagingcloud.ImagingApi import ImagingApi
from asposeimagingcloud.ImagingApi import ApiException
import asposestoragecloud
from asposestoragecloud.StorageApi import StorageApi
from asposestoragecloud.StorageApi import ResponseMessage
apiKey = "XXXXX" #sepcify App Key
appSid = "XXXXX" #sepcify App SID
// For complete examples and data files, please go to https://github.com/aspose-tasks/Aspose.Tasks-for-Java
String input = "Sample1.tiff";
// Instantiate Aspose Storage Cloud API SDK
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true);
// Instantiate Aspose BarCode Cloud API SDK
ImagingApi imagingApi = new ImagingApi(Configuration.apiKey, Configuration.appSID, true);
File inputFile = Utils.stream2file("sample1","tiff", context.getResources().openRawResource(R.raw.sample1));
// For complete examples and data files, please go to https://github.com/aspose-imaging/Aspose.Imaging-for-Cloud
String input = "Sample1.tiff";
Path inputFile = Utils.getPath(GetImageProperties.class, input);
Utils.getStorageSdk().PutCreate(
input,
null,
Utils.STORAGE,
inputFile.toFile()
);
@aspose-imaging
aspose-imaging / Aspose.Imaging-for-Cloud-for-Ruby
Last active April 7, 2017 07:36
Aspose.Imaging-for-Cloud-for-Ruby
The GIST contains Ruby code snippets for examples of Aspose.Imaging for Cloud.
@aspose-imaging
aspose-imaging / Aspose.Imaging-for-Cloud
Last active February 22, 2017 12:14
This Gist contains C#, Perl and Node.js code snippets for examples of Aspose.Imaging for Cloud
Aspose.Imaging-for-Cloud
@aspose-imaging
aspose-imaging / Aspose.Imaging-for-.NET
Last active September 3, 2021 01:00
This Gist contains .NET code snippets for examples of Aspose.Imaging for .NET.
Aspose.Imaging-for-.NET
// For complete examples and data files, please go to https://github.com/Muhammad-Adnan-Ahmad/Aspose.Imaging-for-Java
TiffImage image = (TiffImage) com.aspose.imaging.Image.load(dataDir + "sample.tif");
image.alignResolutions();
// Save the results to output path.
image.save(dataDir + "AligHorizontalAndVeticalResolutions_out.tiff");
int framesCount = image.getFrames().length;