Class: AsposeImagingCloud::ImagingApi
- Inherits:
-
Object
- Object
- AsposeImagingCloud::ImagingApi
- Defined in:
- lib/aspose-imaging-cloud/api/imaging_api.rb
Overview
Aspose.Imaging Cloud API
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#add_search_image(request) ⇒ nil
Add image and images features to search context.
-
#append_tiff(request) ⇒ nil
Appends existing TIFF image to another existing TIFF image (i.e. merges TIFF images).
-
#compare_images(request) ⇒ SearchResultsSet
Compare two images.
-
#convert_image(request) ⇒ File
Convert existing image to another format.
-
#convert_tiff_to_fax(request) ⇒ File
Update parameters of existing TIFF image accordingly to fax parameters.
-
#copy_file(request) ⇒ nil
Copy file.
-
#copy_folder(request) ⇒ nil
Copy folder.
-
#create_converted_image(request) ⇒ File
Convert existing image to another format.
-
#create_cropped_image(request) ⇒ File
Crop an image.
-
#create_deskewed_image(request) ⇒ File
Deskew an image.
-
#create_fax_tiff(request) ⇒ File
Update parameters of TIFF image accordingly to fax parameters.
-
#create_folder(request) ⇒ nil
Create the folder.
-
#create_grayscaled_image(request) ⇒ File
Grayscales an image.
-
#create_image_features(request) ⇒ nil
Extract images features and add them to search context.
-
#create_image_frame(request) ⇒ File
Get separate frame from existing image.
-
#create_image_frame_range(request) ⇒ File
Get frames range from existing image.
-
#create_image_search(request) ⇒ SearchContextStatus
Create new search context.
-
#create_image_tag(request) ⇒ nil
Add tag and reference image to search context.
-
#create_modified_bmp(request) ⇒ File
Update parameters of BMP image.
-
#create_modified_emf(request) ⇒ File
Process existing EMF imaging using given parameters.
-
#create_modified_gif(request) ⇒ File
Update parameters of GIF image.
-
#create_modified_jpeg(request) ⇒ File
Update parameters of JPEG image.
-
#create_modified_jpeg2000(request) ⇒ File
Update parameters of JPEG2000 image.
-
#create_modified_psd(request) ⇒ File
Update parameters of PSD image.
-
#create_modified_svg(request) ⇒ File
Update parameters of SVG image.
-
#create_modified_tiff(request) ⇒ File
Update parameters of TIFF image.
-
#create_modified_web_p(request) ⇒ File
Update parameters of WEBP image.
-
#create_modified_wmf(request) ⇒ File
Process existing WMF image using given parameters.
-
#create_object_bounds(request) ⇒ DetectedObjectList
Detects objects bounds.
-
#create_resized_image(request) ⇒ File
Resize an image.
-
#create_rotate_flipped_image(request) ⇒ File
Rotate and/or flip an image.
-
#create_updated_image(request) ⇒ File
Perform scaling, cropping and flipping of an image in a single request.
-
#create_visual_object_bounds(request) ⇒ File
Detects objects bounds and draw them on the original image.
-
#create_web_site_image_features(request) ⇒ nil
Extract images features from web page and add them to search context.
-
#crop_image(request) ⇒ File
Crop an existing image.
-
#delete_file(request) ⇒ nil
Delete file.
-
#delete_folder(request) ⇒ nil
Delete folder.
-
#delete_image_features(request) ⇒ nil
Deletes image features from search context.
-
#delete_image_search(request) ⇒ nil
Deletes the search context.
-
#delete_search_image(request) ⇒ nil
Delete image and images features from search context.
-
#deskew_image(request) ⇒ File
Deskew an existing image.
-
#download_file(request) ⇒ File
Download file.
-
#extract_image_features(request) ⇒ ImageFeatures
Extract features from image without adding to search context.
-
#extract_image_frame_properties(request) ⇒ ImagingResponse
Get separate frame properties of existing image.
-
#extract_image_properties(request) ⇒ ImagingResponse
Get properties of an image.
-
#filter_effect_image(request) ⇒ File
Apply filtering effects to an existing image.
-
#find_image_duplicates(request) ⇒ ImageDuplicatesSet
Find images duplicates.
-
#find_images_by_tags(request) ⇒ SearchResultsSet
Find images by tags.
-
#find_similar_images(request) ⇒ SearchResultsSet
Find similar images.
-
#get_available_labels(request) ⇒ AvailableLabelsList
Gets available labels for selected object detection method.
-
#get_disc_usage(request) ⇒ DiscUsage
Get disc usage.
-
#get_file_versions(request) ⇒ FileVersions
Get file versions.
-
#get_files_list(request) ⇒ FilesList
Get all files and folders within a folder.
-
#get_image_features(request) ⇒ ImageFeatures
Gets image features from search context.
-
#get_image_frame(request) ⇒ File
Get separate frame from existing image.
-
#get_image_frame_properties(request) ⇒ ImagingResponse
Get separate frame properties of existing image.
-
#get_image_frame_range(request) ⇒ File
Get frames range from existing image.
-
#get_image_properties(request) ⇒ ImagingResponse
Get properties of an image.
-
#get_image_search_status(request) ⇒ SearchContextStatus
Gets the search context status.
-
#get_object_bounds(request) ⇒ DetectedObjectList
Detects objects’ bounds.
-
#get_search_image(request) ⇒ File
Get image from search context.
-
#get_visual_object_bounds(request) ⇒ File
Detects objects bounds and draw them on the original image.
-
#grayscale_image(request) ⇒ File
Grayscale an existing image.
-
#initialize(client_secret = nil, client_id = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v3.0', debug = false) ⇒ ImagingApi
constructor
Initializes a new instance of the ImagingApi class.
-
#modify_bmp(request) ⇒ File
Update parameters of existing BMP image.
-
#modify_emf(request) ⇒ File
Process existing EMF imaging using given parameters.
-
#modify_gif(request) ⇒ File
Update parameters of existing GIF image.
-
#modify_jpeg(request) ⇒ File
Update parameters of existing JPEG image.
-
#modify_jpeg2000(request) ⇒ File
Update parameters of existing JPEG2000 image.
-
#modify_psd(request) ⇒ File
Update parameters of existing PSD image.
-
#modify_svg(request) ⇒ File
Update parameters of existing SVG image.
-
#modify_tiff(request) ⇒ File
Update parameters of existing TIFF image.
-
#modify_web_p(request) ⇒ File
Update parameters of existing WEBP image.
-
#modify_wmf(request) ⇒ File
Process existing WMF image using given parameters.
-
#move_file(request) ⇒ nil
Move file.
-
#move_folder(request) ⇒ nil
Move folder.
-
#object_exists(request) ⇒ ObjectExist
Check if file or folder exists.
-
#resize_image(request) ⇒ File
Resize an existing image.
-
#rotate_flip_image(request) ⇒ File
Rotate and/or flip an existing image.
-
#storage_exists(request) ⇒ StorageExist
Check if storage exists.
-
#update_image(request) ⇒ File
Perform scaling, cropping and flipping of an existing image in a single request.
-
#update_image_features(request) ⇒ nil
Update images features in search context.
-
#update_search_image(request) ⇒ nil
Update image and images features in search context.
-
#upload_file(request) ⇒ FilesUploadResult
Upload file.
Constructor Details
#initialize(client_secret = nil, client_id = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v3.0', debug = false) ⇒ ImagingApi
Initializes a new instance of the ImagingApi class.
40 41 42 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 40 def initialize(client_secret = nil, client_id = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v3.0', debug = false) @api_client = ApiClient.new(client_secret, client_id, base_url, api_version, debug) end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
32 33 34 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 32 def api_client @api_client end |
Instance Method Details
#add_search_image(request) ⇒ nil
Add image and images features to search context. Image data may be passed as zero-indexed multipart/form-data content or as raw body stream.
47 48 49 50 51 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 47 def add_search_image(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, nil) nil end |
#append_tiff(request) ⇒ nil
Appends existing TIFF image to another existing TIFF image (i.e. merges TIFF images).
56 57 58 59 60 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 56 def append_tiff(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, nil) nil end |
#compare_images(request) ⇒ SearchResultsSet
Compare two images. Image data may be passed as zero-indexed multipart/form-data content or as raw body stream.
65 66 67 68 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 65 def compare_images(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'SearchResultsSet') end |
#convert_image(request) ⇒ File
Convert existing image to another format.
73 74 75 76 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 73 def convert_image(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'File') end |
#convert_tiff_to_fax(request) ⇒ File
Update parameters of existing TIFF image accordingly to fax parameters.
81 82 83 84 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 81 def convert_tiff_to_fax(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'File') end |
#copy_file(request) ⇒ nil
Copy file
89 90 91 92 93 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 89 def copy_file(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :PUT, nil) nil end |
#copy_folder(request) ⇒ nil
Copy folder
98 99 100 101 102 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 98 def copy_folder(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :PUT, nil) nil end |
#create_converted_image(request) ⇒ File
Convert existing image to another format. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
107 108 109 110 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 107 def create_converted_image(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'File') end |
#create_cropped_image(request) ⇒ File
Crop an image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
115 116 117 118 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 115 def create_cropped_image(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'File') end |
#create_deskewed_image(request) ⇒ File
Deskew an image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
123 124 125 126 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 123 def create_deskewed_image(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'File') end |
#create_fax_tiff(request) ⇒ File
Update parameters of TIFF image accordingly to fax parameters. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
131 132 133 134 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 131 def create_fax_tiff(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'File') end |
#create_folder(request) ⇒ nil
Create the folder
139 140 141 142 143 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 139 def create_folder(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :PUT, nil) nil end |
#create_grayscaled_image(request) ⇒ File
Grayscales an image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
148 149 150 151 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 148 def create_grayscaled_image(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'File') end |
#create_image_features(request) ⇒ nil
Extract images features and add them to search context. Image data may be passed as zero-indexed multipart/form-data content or as raw body stream.
156 157 158 159 160 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 156 def create_image_features(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, nil) nil end |
#create_image_frame(request) ⇒ File
Get separate frame from existing image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
165 166 167 168 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 165 def create_image_frame(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'File') end |
#create_image_frame_range(request) ⇒ File
Get frames range from existing image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
173 174 175 176 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 173 def create_image_frame_range(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'File') end |
#create_image_search(request) ⇒ SearchContextStatus
Create new search context.
181 182 183 184 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 181 def create_image_search(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'SearchContextStatus') end |
#create_image_tag(request) ⇒ nil
Add tag and reference image to search context. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
189 190 191 192 193 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 189 def create_image_tag(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, nil) nil end |
#create_modified_bmp(request) ⇒ File
Update parameters of BMP image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
198 199 200 201 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 198 def create_modified_bmp(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'File') end |
#create_modified_emf(request) ⇒ File
Process existing EMF imaging using given parameters. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
206 207 208 209 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 206 def create_modified_emf(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'File') end |
#create_modified_gif(request) ⇒ File
Update parameters of GIF image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
214 215 216 217 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 214 def create_modified_gif(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'File') end |
#create_modified_jpeg(request) ⇒ File
Update parameters of JPEG image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
222 223 224 225 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 222 def create_modified_jpeg(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'File') end |
#create_modified_jpeg2000(request) ⇒ File
Update parameters of JPEG2000 image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
230 231 232 233 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 230 def create_modified_jpeg2000(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'File') end |
#create_modified_psd(request) ⇒ File
Update parameters of PSD image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
238 239 240 241 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 238 def create_modified_psd(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'File') end |
#create_modified_svg(request) ⇒ File
Update parameters of SVG image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
246 247 248 249 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 246 def create_modified_svg(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'File') end |
#create_modified_tiff(request) ⇒ File
Update parameters of TIFF image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
254 255 256 257 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 254 def create_modified_tiff(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'File') end |
#create_modified_web_p(request) ⇒ File
Update parameters of WEBP image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
262 263 264 265 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 262 def create_modified_web_p(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'File') end |
#create_modified_wmf(request) ⇒ File
Process existing WMF image using given parameters. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
270 271 272 273 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 270 def create_modified_wmf(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'File') end |
#create_object_bounds(request) ⇒ DetectedObjectList
Detects objects bounds. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
278 279 280 281 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 278 def create_object_bounds(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'DetectedObjectList') end |
#create_resized_image(request) ⇒ File
Resize an image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
286 287 288 289 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 286 def create_resized_image(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'File') end |
#create_rotate_flipped_image(request) ⇒ File
Rotate and/or flip an image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
294 295 296 297 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 294 def create_rotate_flipped_image(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'File') end |
#create_updated_image(request) ⇒ File
Perform scaling, cropping and flipping of an image in a single request. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
302 303 304 305 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 302 def create_updated_image(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'File') end |
#create_visual_object_bounds(request) ⇒ File
Detects objects bounds and draw them on the original image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream
310 311 312 313 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 310 def create_visual_object_bounds(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'File') end |
#create_web_site_image_features(request) ⇒ nil
Extract images features from web page and add them to search context
318 319 320 321 322 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 318 def create_web_site_image_features(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, nil) nil end |
#crop_image(request) ⇒ File
Crop an existing image.
327 328 329 330 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 327 def crop_image(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'File') end |
#delete_file(request) ⇒ nil
Delete file
335 336 337 338 339 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 335 def delete_file(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :DELETE, nil) nil end |
#delete_folder(request) ⇒ nil
Delete folder
344 345 346 347 348 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 344 def delete_folder(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :DELETE, nil) nil end |
#delete_image_features(request) ⇒ nil
Deletes image features from search context.
353 354 355 356 357 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 353 def delete_image_features(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :DELETE, nil) nil end |
#delete_image_search(request) ⇒ nil
Deletes the search context.
362 363 364 365 366 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 362 def delete_image_search(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :DELETE, nil) nil end |
#delete_search_image(request) ⇒ nil
Delete image and images features from search context
371 372 373 374 375 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 371 def delete_search_image(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :DELETE, nil) nil end |
#deskew_image(request) ⇒ File
Deskew an existing image.
380 381 382 383 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 380 def deskew_image(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'File') end |
#download_file(request) ⇒ File
Download file
388 389 390 391 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 388 def download_file(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'File') end |
#extract_image_features(request) ⇒ ImageFeatures
Extract features from image without adding to search context. Image data may be passed as zero-indexed multipart/form-data content or as raw body stream.
396 397 398 399 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 396 def extract_image_features(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'ImageFeatures') end |
#extract_image_frame_properties(request) ⇒ ImagingResponse
Get separate frame properties of existing image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
404 405 406 407 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 404 def extract_image_frame_properties(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'ImagingResponse') end |
#extract_image_properties(request) ⇒ ImagingResponse
Get properties of an image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
412 413 414 415 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 412 def extract_image_properties(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'ImagingResponse') end |
#filter_effect_image(request) ⇒ File
Apply filtering effects to an existing image.
420 421 422 423 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 420 def filter_effect_image(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :PUT, 'File') end |
#find_image_duplicates(request) ⇒ ImageDuplicatesSet
Find images duplicates.
428 429 430 431 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 428 def find_image_duplicates(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'ImageDuplicatesSet') end |
#find_images_by_tags(request) ⇒ SearchResultsSet
Find images by tags. Tags JSON string is passed as zero-indexed multipart/form-data content or as raw body stream.
436 437 438 439 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 436 def (request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :POST, 'SearchResultsSet') end |
#find_similar_images(request) ⇒ SearchResultsSet
Find similar images. Image data may be passed as zero-indexed multipart/form-data content or as raw body stream.
444 445 446 447 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 444 def find_similar_images(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'SearchResultsSet') end |
#get_available_labels(request) ⇒ AvailableLabelsList
Gets available labels for selected object detection method.
452 453 454 455 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 452 def get_available_labels(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'AvailableLabelsList') end |
#get_disc_usage(request) ⇒ DiscUsage
Get disc usage
460 461 462 463 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 460 def get_disc_usage(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'DiscUsage') end |
#get_file_versions(request) ⇒ FileVersions
Get file versions
468 469 470 471 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 468 def get_file_versions(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'FileVersions') end |
#get_files_list(request) ⇒ FilesList
Get all files and folders within a folder
476 477 478 479 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 476 def get_files_list(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'FilesList') end |
#get_image_features(request) ⇒ ImageFeatures
Gets image features from search context.
484 485 486 487 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 484 def get_image_features(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'ImageFeatures') end |
#get_image_frame(request) ⇒ File
Get separate frame from existing image.
492 493 494 495 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 492 def get_image_frame(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'File') end |
#get_image_frame_properties(request) ⇒ ImagingResponse
Get separate frame properties of existing image.
500 501 502 503 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 500 def get_image_frame_properties(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'ImagingResponse') end |
#get_image_frame_range(request) ⇒ File
Get frames range from existing image.
508 509 510 511 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 508 def get_image_frame_range(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'File') end |
#get_image_properties(request) ⇒ ImagingResponse
Get properties of an image.
516 517 518 519 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 516 def get_image_properties(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'ImagingResponse') end |
#get_image_search_status(request) ⇒ SearchContextStatus
Gets the search context status.
524 525 526 527 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 524 def get_image_search_status(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'SearchContextStatus') end |
#get_object_bounds(request) ⇒ DetectedObjectList
Detects objects’ bounds
532 533 534 535 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 532 def get_object_bounds(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'DetectedObjectList') end |
#get_search_image(request) ⇒ File
Get image from search context
540 541 542 543 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 540 def get_search_image(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'File') end |
#get_visual_object_bounds(request) ⇒ File
Detects objects bounds and draw them on the original image
548 549 550 551 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 548 def get_visual_object_bounds(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'File') end |
#grayscale_image(request) ⇒ File
Grayscale an existing image.
556 557 558 559 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 556 def grayscale_image(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'File') end |
#modify_bmp(request) ⇒ File
Update parameters of existing BMP image.
564 565 566 567 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 564 def modify_bmp(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'File') end |
#modify_emf(request) ⇒ File
Process existing EMF imaging using given parameters.
572 573 574 575 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 572 def modify_emf(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'File') end |
#modify_gif(request) ⇒ File
Update parameters of existing GIF image.
580 581 582 583 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 580 def modify_gif(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'File') end |
#modify_jpeg(request) ⇒ File
Update parameters of existing JPEG image.
588 589 590 591 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 588 def modify_jpeg(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'File') end |
#modify_jpeg2000(request) ⇒ File
Update parameters of existing JPEG2000 image.
596 597 598 599 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 596 def modify_jpeg2000(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'File') end |
#modify_psd(request) ⇒ File
Update parameters of existing PSD image.
604 605 606 607 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 604 def modify_psd(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'File') end |
#modify_svg(request) ⇒ File
Update parameters of existing SVG image.
612 613 614 615 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 612 def modify_svg(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'File') end |
#modify_tiff(request) ⇒ File
Update parameters of existing TIFF image.
620 621 622 623 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 620 def modify_tiff(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'File') end |
#modify_web_p(request) ⇒ File
Update parameters of existing WEBP image.
628 629 630 631 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 628 def modify_web_p(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'File') end |
#modify_wmf(request) ⇒ File
Process existing WMF image using given parameters.
636 637 638 639 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 636 def modify_wmf(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'File') end |
#move_file(request) ⇒ nil
Move file
644 645 646 647 648 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 644 def move_file(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :PUT, nil) nil end |
#move_folder(request) ⇒ nil
Move folder
653 654 655 656 657 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 653 def move_folder(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :PUT, nil) nil end |
#object_exists(request) ⇒ ObjectExist
Check if file or folder exists
662 663 664 665 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 662 def object_exists(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'ObjectExist') end |
#resize_image(request) ⇒ File
Resize an existing image.
670 671 672 673 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 670 def resize_image(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'File') end |
#rotate_flip_image(request) ⇒ File
Rotate and/or flip an existing image.
678 679 680 681 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 678 def rotate_flip_image(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'File') end |
#storage_exists(request) ⇒ StorageExist
Check if storage exists
686 687 688 689 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 686 def storage_exists(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'StorageExist') end |
#update_image(request) ⇒ File
Perform scaling, cropping and flipping of an existing image in a single request.
694 695 696 697 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 694 def update_image(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :GET, 'File') end |
#update_image_features(request) ⇒ nil
Update images features in search context. Image data may be passed as zero-indexed multipart/form-data content or as raw body stream.
702 703 704 705 706 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 702 def update_image_features(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :PUT, nil) nil end |
#update_search_image(request) ⇒ nil
Update image and images features in search context. Image data may be passed as zero-indexed multipart/form-data content or as raw body stream.
711 712 713 714 715 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 711 def update_search_image(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :PUT, nil) nil end |
#upload_file(request) ⇒ FilesUploadResult
Upload file
720 721 722 723 |
# File 'lib/aspose-imaging-cloud/api/imaging_api.rb', line 720 def upload_file(request) http_request = request.to_http_info(@api_client.config) make_request(http_request, :PUT, 'FilesUploadResult') end |