aspose_imaging_cloud 19.12 → 20.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +26 -12
- data/lib/aspose-imaging-cloud.rb +75 -59
- data/lib/aspose-imaging-cloud/api/imaging_api.rb +93 -5
- data/lib/aspose-imaging-cloud/api_client.rb +2 -2
- data/lib/aspose-imaging-cloud/api_error.rb +2 -2
- data/lib/aspose-imaging-cloud/configuration.rb +1 -1
- data/lib/aspose-imaging-cloud/models/big_rectangular_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/bilateral_smoothing_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/bmp_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/convolution_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/deconvolution_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/detected_object.rb +228 -0
- data/lib/aspose-imaging-cloud/models/detected_object_list.rb +204 -0
- data/lib/aspose-imaging-cloud/models/dicom_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/disc_usage.rb +1 -1
- data/lib/aspose-imaging-cloud/models/djvu_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/dng_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/error.rb +1 -1
- data/lib/aspose-imaging-cloud/models/error_details.rb +1 -1
- data/lib/aspose-imaging-cloud/models/exif_data.rb +1 -1
- data/lib/aspose-imaging-cloud/models/file_version.rb +1 -1
- data/lib/aspose-imaging-cloud/models/file_versions.rb +1 -1
- data/lib/aspose-imaging-cloud/models/files_list.rb +1 -1
- data/lib/aspose-imaging-cloud/models/files_upload_result.rb +1 -1
- data/lib/aspose-imaging-cloud/models/filter_properties_base.rb +1 -1
- data/lib/aspose-imaging-cloud/models/gauss_wiener_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/gaussian_blur_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/gif_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/image_duplicates.rb +1 -1
- data/lib/aspose-imaging-cloud/models/image_duplicates_set.rb +1 -1
- data/lib/aspose-imaging-cloud/models/image_features.rb +1 -1
- data/lib/aspose-imaging-cloud/models/imaging_response.rb +1 -1
- data/lib/aspose-imaging-cloud/models/jfif_data.rb +1 -1
- data/lib/aspose-imaging-cloud/models/jpeg2000_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/jpeg_exif_data.rb +1 -1
- data/lib/aspose-imaging-cloud/models/jpeg_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/median_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/motion_wiener_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/object_exist.rb +1 -1
- data/lib/aspose-imaging-cloud/models/odg_metadata.rb +1 -1
- data/lib/aspose-imaging-cloud/models/odg_page.rb +1 -1
- data/lib/aspose-imaging-cloud/models/odg_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/png_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/psd_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/rectangle.rb +247 -0
- data/lib/aspose-imaging-cloud/models/requests/add_search_image_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/append_tiff_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/compare_images_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/convert_tiff_to_fax_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/copy_file_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/copy_folder_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_cropped_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/create_deskewed_image_request.rb +92 -0
- data/lib/aspose-imaging-cloud/models/requests/create_fax_tiff_request.rb +81 -0
- data/lib/aspose-imaging-cloud/models/requests/create_folder_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_grayscaled_image_request.rb +81 -0
- data/lib/aspose-imaging-cloud/models/requests/create_image_features_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_image_frame_range_request.rb +121 -0
- data/lib/aspose-imaging-cloud/models/requests/create_image_frame_request.rb +2 -2
- data/lib/aspose-imaging-cloud/models/requests/create_image_search_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_image_tag_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_bmp_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_emf_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_gif_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_jpeg2000_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_jpeg_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_psd_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_svg_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_tiff_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_web_p_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_wmf_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_object_bounds_request.rb +93 -0
- data/lib/aspose-imaging-cloud/models/requests/create_resized_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/create_rotate_flipped_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/create_saved_image_as_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_updated_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/create_visual_object_bounds_request.rb +96 -0
- data/lib/aspose-imaging-cloud/models/requests/create_web_site_image_features_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/crop_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/delete_file_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/delete_folder_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/delete_image_features_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/delete_image_search_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/delete_search_image_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/deskew_image_request.rb +91 -0
- data/lib/aspose-imaging-cloud/models/requests/download_file_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/extract_image_features_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/extract_image_frame_properties_request.rb +2 -2
- data/lib/aspose-imaging-cloud/models/requests/extract_image_properties_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/filter_effect_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/find_image_duplicates_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/find_images_by_tags_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/find_similar_images_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/get_disc_usage_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/get_file_versions_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/get_files_list_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/get_image_features_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/get_image_frame_properties_request.rb +2 -2
- data/lib/aspose-imaging-cloud/models/requests/get_image_frame_range_request.rb +120 -0
- data/lib/aspose-imaging-cloud/models/requests/get_image_frame_request.rb +2 -2
- data/lib/aspose-imaging-cloud/models/requests/get_image_properties_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/get_image_search_status_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/get_object_bounds_request.rb +92 -0
- data/lib/aspose-imaging-cloud/models/requests/get_search_image_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/get_visual_object_bounds_request.rb +95 -0
- data/lib/aspose-imaging-cloud/models/requests/grayscale_image_request.rb +80 -0
- data/lib/aspose-imaging-cloud/models/requests/http_request.rb +2 -1
- data/lib/aspose-imaging-cloud/models/requests/imaging_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_bmp_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_emf_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_gif_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_jpeg2000_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_jpeg_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_psd_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_svg_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_tiff_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_web_p_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_wmf_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/move_file_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/move_folder_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/object_bounds_request.rb +93 -0
- data/lib/aspose-imaging-cloud/models/requests/object_exists_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/resize_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/rotate_flip_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/save_image_as_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/storage_exists_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/update_image_features_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/update_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/update_search_image_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/upload_file_request.rb +1 -2
- data/lib/aspose-imaging-cloud/models/requests/visual_object_bounds_request.rb +94 -0
- data/lib/aspose-imaging-cloud/models/search_context_status.rb +1 -1
- data/lib/aspose-imaging-cloud/models/search_result.rb +1 -1
- data/lib/aspose-imaging-cloud/models/search_results_set.rb +1 -1
- data/lib/aspose-imaging-cloud/models/sharpen_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/small_rectangular_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/storage_exist.rb +1 -1
- data/lib/aspose-imaging-cloud/models/storage_file.rb +1 -1
- data/lib/aspose-imaging-cloud/models/svg_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/tiff_frame.rb +1 -1
- data/lib/aspose-imaging-cloud/models/tiff_options.rb +1 -1
- data/lib/aspose-imaging-cloud/models/tiff_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/web_p_properties.rb +1 -1
- metadata +23 -5
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="object_exists_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="resize_image_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -33,16 +33,16 @@ module AsposeImagingCloud
|
|
33
33
|
|
34
34
|
# Resize an existing image.
|
35
35
|
# @param [String] name Filename of an image.
|
36
|
-
# @param [String] format Resulting image format. Please, refer to https://docs.aspose.cloud/display/imagingcloud/Supported+File+Formats#SupportedFileFormats-CommonOperationsFormatSupportMap for possible use-cases.
|
37
36
|
# @param [Integer] new_width New width.
|
38
37
|
# @param [Integer] new_height New height.
|
38
|
+
# @param [String] format Resulting image format. Please, refer to https://docs.aspose.cloud/display/imagingcloud/Supported+File+Formats#SupportedFileFormats-CommonOperationsFormatSupportMap for possible use-cases.
|
39
39
|
# @param [String] folder Folder with image to process.
|
40
40
|
# @param [String] storage Your Aspose Cloud Storage name.
|
41
|
-
def initialize(name,
|
41
|
+
def initialize(name, new_width, new_height, format = nil, folder = nil, storage = nil)
|
42
42
|
@name = name
|
43
|
-
@format = format
|
44
43
|
@new_width = new_width
|
45
44
|
@new_height = new_height
|
45
|
+
@format = format
|
46
46
|
@folder = folder
|
47
47
|
@storage = storage
|
48
48
|
end
|
@@ -53,11 +53,6 @@ module AsposeImagingCloud
|
|
53
53
|
raise ArgumentError, "Missing the required parameter 'name' when calling ImagingApi.resize_image"
|
54
54
|
end
|
55
55
|
|
56
|
-
# verify the required parameter 'format' is set
|
57
|
-
if config.client_side_validation && @format.nil?
|
58
|
-
raise ArgumentError, "Missing the required parameter 'format' when calling ImagingApi.resize_image"
|
59
|
-
end
|
60
|
-
|
61
56
|
# verify the required parameter 'new_width' is set
|
62
57
|
if config.client_side_validation && @new_width.nil?
|
63
58
|
raise ArgumentError, "Missing the required parameter 'new_width' when calling ImagingApi.resize_image"
|
@@ -73,9 +68,9 @@ module AsposeImagingCloud
|
|
73
68
|
|
74
69
|
# query parameters
|
75
70
|
query_params = {}
|
76
|
-
query_params[:format] = @format
|
77
71
|
query_params[:newWidth] = @new_width
|
78
72
|
query_params[:newHeight] = @new_height
|
73
|
+
query_params[:format] = @format unless @format.nil?
|
79
74
|
query_params[:folder] = @folder unless @folder.nil?
|
80
75
|
query_params[:storage] = @storage unless @storage.nil?
|
81
76
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="rotate_flip_image_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -33,14 +33,14 @@ module AsposeImagingCloud
|
|
33
33
|
|
34
34
|
# Rotate and/or flip an existing image.
|
35
35
|
# @param [String] name Filename of an image.
|
36
|
-
# @param [String] format Resulting image format. Please, refer to https://docs.aspose.cloud/display/imagingcloud/Supported+File+Formats#SupportedFileFormats-CommonOperationsFormatSupportMap for possible use-cases.
|
37
36
|
# @param [String] method RotateFlip method (Rotate180FlipNone, Rotate180FlipX, Rotate180FlipXY, Rotate180FlipY, Rotate270FlipNone, Rotate270FlipX, Rotate270FlipXY, Rotate270FlipY, Rotate90FlipNone, Rotate90FlipX, Rotate90FlipXY, Rotate90FlipY, RotateNoneFlipNone, RotateNoneFlipX, RotateNoneFlipXY, RotateNoneFlipY).
|
37
|
+
# @param [String] format Resulting image format. Please, refer to https://docs.aspose.cloud/display/imagingcloud/Supported+File+Formats#SupportedFileFormats-CommonOperationsFormatSupportMap for possible use-cases.
|
38
38
|
# @param [String] folder Folder with image to process.
|
39
39
|
# @param [String] storage Your Aspose Cloud Storage name.
|
40
|
-
def initialize(name,
|
40
|
+
def initialize(name, method, format = nil, folder = nil, storage = nil)
|
41
41
|
@name = name
|
42
|
-
@format = format
|
43
42
|
@method = method
|
43
|
+
@format = format
|
44
44
|
@folder = folder
|
45
45
|
@storage = storage
|
46
46
|
end
|
@@ -51,11 +51,6 @@ module AsposeImagingCloud
|
|
51
51
|
raise ArgumentError, "Missing the required parameter 'name' when calling ImagingApi.rotate_flip_image"
|
52
52
|
end
|
53
53
|
|
54
|
-
# verify the required parameter 'format' is set
|
55
|
-
if config.client_side_validation && @format.nil?
|
56
|
-
raise ArgumentError, "Missing the required parameter 'format' when calling ImagingApi.rotate_flip_image"
|
57
|
-
end
|
58
|
-
|
59
54
|
# verify the required parameter 'method' is set
|
60
55
|
if config.client_side_validation && @method.nil?
|
61
56
|
raise ArgumentError, "Missing the required parameter 'method' when calling ImagingApi.rotate_flip_image"
|
@@ -66,8 +61,8 @@ module AsposeImagingCloud
|
|
66
61
|
|
67
62
|
# query parameters
|
68
63
|
query_params = {}
|
69
|
-
query_params[:format] = @format
|
70
64
|
query_params[:method] = @method
|
65
|
+
query_params[:format] = @format unless @format.nil?
|
71
66
|
query_params[:folder] = @folder unless @folder.nil?
|
72
67
|
query_params[:storage] = @storage unless @storage.nil?
|
73
68
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="save_image_as_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="storage_exists_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="update_image_features_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="update_image_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -33,7 +33,6 @@ module AsposeImagingCloud
|
|
33
33
|
|
34
34
|
# Perform scaling, cropping and flipping of an existing image in a single request.
|
35
35
|
# @param [String] name Filename of an image.
|
36
|
-
# @param [String] format Resulting image format. Please, refer to https://docs.aspose.cloud/display/imagingcloud/Supported+File+Formats#SupportedFileFormats-CommonOperationsFormatSupportMap for possible use-cases.
|
37
36
|
# @param [Integer] new_width New width of the scaled image.
|
38
37
|
# @param [Integer] new_height New height of the scaled image.
|
39
38
|
# @param [Integer] x X position of start point for cropping rectangle.
|
@@ -41,11 +40,11 @@ module AsposeImagingCloud
|
|
41
40
|
# @param [Integer] rect_width Width of cropping rectangle.
|
42
41
|
# @param [Integer] rect_height Height of cropping rectangle.
|
43
42
|
# @param [String] rotate_flip_method RotateFlip method (Rotate180FlipNone, Rotate180FlipX, Rotate180FlipXY, Rotate180FlipY, Rotate270FlipNone, Rotate270FlipX, Rotate270FlipXY, Rotate270FlipY, Rotate90FlipNone, Rotate90FlipX, Rotate90FlipXY, Rotate90FlipY, RotateNoneFlipNone, RotateNoneFlipX, RotateNoneFlipXY, RotateNoneFlipY). Default is RotateNoneFlipNone.
|
43
|
+
# @param [String] format Resulting image format. Please, refer to https://docs.aspose.cloud/display/imagingcloud/Supported+File+Formats#SupportedFileFormats-CommonOperationsFormatSupportMap for possible use-cases.
|
44
44
|
# @param [String] folder Folder with image to process.
|
45
45
|
# @param [String] storage Your Aspose Cloud Storage name.
|
46
|
-
def initialize(name,
|
46
|
+
def initialize(name, new_width, new_height, x, y, rect_width, rect_height, rotate_flip_method, format = nil, folder = nil, storage = nil)
|
47
47
|
@name = name
|
48
|
-
@format = format
|
49
48
|
@new_width = new_width
|
50
49
|
@new_height = new_height
|
51
50
|
@x = x
|
@@ -53,6 +52,7 @@ module AsposeImagingCloud
|
|
53
52
|
@rect_width = rect_width
|
54
53
|
@rect_height = rect_height
|
55
54
|
@rotate_flip_method = rotate_flip_method
|
55
|
+
@format = format
|
56
56
|
@folder = folder
|
57
57
|
@storage = storage
|
58
58
|
end
|
@@ -63,11 +63,6 @@ module AsposeImagingCloud
|
|
63
63
|
raise ArgumentError, "Missing the required parameter 'name' when calling ImagingApi.update_image"
|
64
64
|
end
|
65
65
|
|
66
|
-
# verify the required parameter 'format' is set
|
67
|
-
if config.client_side_validation && @format.nil?
|
68
|
-
raise ArgumentError, "Missing the required parameter 'format' when calling ImagingApi.update_image"
|
69
|
-
end
|
70
|
-
|
71
66
|
# verify the required parameter 'new_width' is set
|
72
67
|
if config.client_side_validation && @new_width.nil?
|
73
68
|
raise ArgumentError, "Missing the required parameter 'new_width' when calling ImagingApi.update_image"
|
@@ -108,7 +103,6 @@ module AsposeImagingCloud
|
|
108
103
|
|
109
104
|
# query parameters
|
110
105
|
query_params = {}
|
111
|
-
query_params[:format] = @format
|
112
106
|
query_params[:newWidth] = @new_width
|
113
107
|
query_params[:newHeight] = @new_height
|
114
108
|
query_params[:x] = @x
|
@@ -116,6 +110,7 @@ module AsposeImagingCloud
|
|
116
110
|
query_params[:rectWidth] = @rect_width
|
117
111
|
query_params[:rectHeight] = @rect_height
|
118
112
|
query_params[:rotateFlipMethod] = @rotate_flip_method
|
113
|
+
query_params[:format] = @format unless @format.nil?
|
119
114
|
query_params[:folder] = @folder unless @folder.nil?
|
120
115
|
query_params[:storage] = @storage unless @storage.nil?
|
121
116
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="update_search_image_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="upload_file_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -83,4 +83,3 @@ module AsposeImagingCloud
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
end
|
86
|
-
|
@@ -0,0 +1,94 @@
|
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="visual_object_bounds_request.rb">
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
|
+
# </copyright>
|
5
|
+
# <summary>
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
7
|
+
# copy of this software and associated documentation files (the "Software"),
|
8
|
+
# to deal in the Software without restriction, including without limitation
|
9
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
10
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
11
|
+
# Software is furnished to do so, subject to the following conditions:
|
12
|
+
#
|
13
|
+
# The above copyright notice and this permission notice shall be included in
|
14
|
+
# all copies or substantial portions of the Software.
|
15
|
+
#
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22
|
+
# DEALINGS IN THE SOFTWARE.
|
23
|
+
# </summary>
|
24
|
+
# ----------------------------------------------------------------------------
|
25
|
+
|
26
|
+
|
27
|
+
require_relative './imaging_request'
|
28
|
+
require_relative './http_request'
|
29
|
+
|
30
|
+
module AsposeImagingCloud
|
31
|
+
# Request model for visual_object_bounds operation.
|
32
|
+
class VisualObjectBoundsRequest < ImagingRequest
|
33
|
+
|
34
|
+
# Detect objects bounds and draw them on the original image
|
35
|
+
# @param [String] name The image features detector.
|
36
|
+
# @param [String] method Object detection method
|
37
|
+
# @param [Integer] threshold Object detection probability threshold in percents
|
38
|
+
# @param [BOOLEAN] include_class Draw detected objects classes
|
39
|
+
# @param [BOOLEAN] include_score Draw detected objects scores
|
40
|
+
# @param [String] folder The folder.
|
41
|
+
# @param [String] storage The storage.
|
42
|
+
def initialize(name, method = nil, threshold = nil, include_class = nil, include_score = nil, folder = nil, storage = nil)
|
43
|
+
@name = name
|
44
|
+
@method = method
|
45
|
+
@threshold = threshold
|
46
|
+
@include_class = include_class
|
47
|
+
@include_score = include_score
|
48
|
+
@folder = folder
|
49
|
+
@storage = storage
|
50
|
+
end
|
51
|
+
|
52
|
+
def to_http_info(config)
|
53
|
+
# verify the required parameter 'name' is set
|
54
|
+
if config.client_side_validation && @name.nil?
|
55
|
+
raise ArgumentError, "Missing the required parameter 'name' when calling ImagingApi.visual_object_bounds"
|
56
|
+
end
|
57
|
+
|
58
|
+
# resource path
|
59
|
+
local_var_path = '/imaging/ai/objectdetection/visualbounds'
|
60
|
+
|
61
|
+
# query parameters
|
62
|
+
query_params = {}
|
63
|
+
query_params[:name] = @name
|
64
|
+
query_params[:method] = @method unless @method.nil?
|
65
|
+
query_params[:threshold] = @threshold unless @threshold.nil?
|
66
|
+
query_params[:includeClass] = @include_class unless @include_class.nil?
|
67
|
+
query_params[:includeScore] = @include_score unless @include_score.nil?
|
68
|
+
query_params[:folder] = @folder unless @folder.nil?
|
69
|
+
query_params[:storage] = @storage unless @storage.nil?
|
70
|
+
|
71
|
+
# form parameters
|
72
|
+
form_params = {}
|
73
|
+
|
74
|
+
# http body (model)
|
75
|
+
post_body = nil
|
76
|
+
auth_names = ['JWT']
|
77
|
+
|
78
|
+
# header parameters
|
79
|
+
header_params = {}
|
80
|
+
# HTTP header 'Accept' (if needed)
|
81
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
82
|
+
# HTTP header 'Content-Type'
|
83
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
84
|
+
|
85
|
+
AsposeImagingCloud::HttpRequest.new(local_var_path,
|
86
|
+
header_params,
|
87
|
+
query_params,
|
88
|
+
form_params,
|
89
|
+
post_body,
|
90
|
+
auth_names)
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="search_context_status.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="search_result.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="search_results_set.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="sharpen_filter_properties.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="small_rectangular_filter_properties.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="storage_exist.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="storage_file.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="svg_properties.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="tiff_frame.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="tiff_options.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="tiff_properties.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="web_p_properties.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
metadata
CHANGED
@@ -1,20 +1,22 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aspose_imaging_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '
|
4
|
+
version: '20.5'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergei Zubov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
|
15
|
-
|
15
|
+
When you need robust image processing features into your Ruby application, but do not have time&resources to develop complex imaging back end yourself, Aspose.Imaging Cloud SDK for Ruby is for you. There are set of powerful image conversion, transformation, filtering features along with advanced reverse image search feature exposed via Aspose.Imaging REST API and wrapped as native Ruby SDK to help Ruby developers build imaging applications easy.
|
16
16
|
|
17
|
-
|
17
|
+
Aspose.Imaging Cloud SDK for Ruby offers advanced processing of multi page TIFF images. You can extract a single TIFF frame to crop, resize, rotate, or flip add the frame, prepare TIFF as a fax.
|
18
|
+
|
19
|
+
This repository contains Aspose.Imaging Cloud Ruby SDK source code. This SDK allows you to work with Aspose.Imaging Cloud REST APIs in your Ruby applications quickly and easily, with zero initial cost.
|
18
20
|
|
19
21
|
To use this SDK, you will need App SID and App Key which can be looked up at Aspose Cloud Dashboard (free registration in Aspose Cloud is required for this).
|
20
22
|
|
@@ -36,6 +38,8 @@ files:
|
|
36
38
|
- lib/aspose-imaging-cloud/models/bmp_properties.rb
|
37
39
|
- lib/aspose-imaging-cloud/models/convolution_filter_properties.rb
|
38
40
|
- lib/aspose-imaging-cloud/models/deconvolution_filter_properties.rb
|
41
|
+
- lib/aspose-imaging-cloud/models/detected_object.rb
|
42
|
+
- lib/aspose-imaging-cloud/models/detected_object_list.rb
|
39
43
|
- lib/aspose-imaging-cloud/models/dicom_properties.rb
|
40
44
|
- lib/aspose-imaging-cloud/models/disc_usage.rb
|
41
45
|
- lib/aspose-imaging-cloud/models/djvu_properties.rb
|
@@ -67,6 +71,7 @@ files:
|
|
67
71
|
- lib/aspose-imaging-cloud/models/odg_properties.rb
|
68
72
|
- lib/aspose-imaging-cloud/models/png_properties.rb
|
69
73
|
- lib/aspose-imaging-cloud/models/psd_properties.rb
|
74
|
+
- lib/aspose-imaging-cloud/models/rectangle.rb
|
70
75
|
- lib/aspose-imaging-cloud/models/requests/add_search_image_request.rb
|
71
76
|
- lib/aspose-imaging-cloud/models/requests/append_tiff_request.rb
|
72
77
|
- lib/aspose-imaging-cloud/models/requests/compare_images_request.rb
|
@@ -74,8 +79,12 @@ files:
|
|
74
79
|
- lib/aspose-imaging-cloud/models/requests/copy_file_request.rb
|
75
80
|
- lib/aspose-imaging-cloud/models/requests/copy_folder_request.rb
|
76
81
|
- lib/aspose-imaging-cloud/models/requests/create_cropped_image_request.rb
|
82
|
+
- lib/aspose-imaging-cloud/models/requests/create_deskewed_image_request.rb
|
83
|
+
- lib/aspose-imaging-cloud/models/requests/create_fax_tiff_request.rb
|
77
84
|
- lib/aspose-imaging-cloud/models/requests/create_folder_request.rb
|
85
|
+
- lib/aspose-imaging-cloud/models/requests/create_grayscaled_image_request.rb
|
78
86
|
- lib/aspose-imaging-cloud/models/requests/create_image_features_request.rb
|
87
|
+
- lib/aspose-imaging-cloud/models/requests/create_image_frame_range_request.rb
|
79
88
|
- lib/aspose-imaging-cloud/models/requests/create_image_frame_request.rb
|
80
89
|
- lib/aspose-imaging-cloud/models/requests/create_image_search_request.rb
|
81
90
|
- lib/aspose-imaging-cloud/models/requests/create_image_tag_request.rb
|
@@ -89,10 +98,12 @@ files:
|
|
89
98
|
- lib/aspose-imaging-cloud/models/requests/create_modified_tiff_request.rb
|
90
99
|
- lib/aspose-imaging-cloud/models/requests/create_modified_web_p_request.rb
|
91
100
|
- lib/aspose-imaging-cloud/models/requests/create_modified_wmf_request.rb
|
101
|
+
- lib/aspose-imaging-cloud/models/requests/create_object_bounds_request.rb
|
92
102
|
- lib/aspose-imaging-cloud/models/requests/create_resized_image_request.rb
|
93
103
|
- lib/aspose-imaging-cloud/models/requests/create_rotate_flipped_image_request.rb
|
94
104
|
- lib/aspose-imaging-cloud/models/requests/create_saved_image_as_request.rb
|
95
105
|
- lib/aspose-imaging-cloud/models/requests/create_updated_image_request.rb
|
106
|
+
- lib/aspose-imaging-cloud/models/requests/create_visual_object_bounds_request.rb
|
96
107
|
- lib/aspose-imaging-cloud/models/requests/create_web_site_image_features_request.rb
|
97
108
|
- lib/aspose-imaging-cloud/models/requests/crop_image_request.rb
|
98
109
|
- lib/aspose-imaging-cloud/models/requests/delete_file_request.rb
|
@@ -100,6 +111,7 @@ files:
|
|
100
111
|
- lib/aspose-imaging-cloud/models/requests/delete_image_features_request.rb
|
101
112
|
- lib/aspose-imaging-cloud/models/requests/delete_image_search_request.rb
|
102
113
|
- lib/aspose-imaging-cloud/models/requests/delete_search_image_request.rb
|
114
|
+
- lib/aspose-imaging-cloud/models/requests/deskew_image_request.rb
|
103
115
|
- lib/aspose-imaging-cloud/models/requests/download_file_request.rb
|
104
116
|
- lib/aspose-imaging-cloud/models/requests/extract_image_features_request.rb
|
105
117
|
- lib/aspose-imaging-cloud/models/requests/extract_image_frame_properties_request.rb
|
@@ -113,10 +125,14 @@ files:
|
|
113
125
|
- lib/aspose-imaging-cloud/models/requests/get_files_list_request.rb
|
114
126
|
- lib/aspose-imaging-cloud/models/requests/get_image_features_request.rb
|
115
127
|
- lib/aspose-imaging-cloud/models/requests/get_image_frame_properties_request.rb
|
128
|
+
- lib/aspose-imaging-cloud/models/requests/get_image_frame_range_request.rb
|
116
129
|
- lib/aspose-imaging-cloud/models/requests/get_image_frame_request.rb
|
117
130
|
- lib/aspose-imaging-cloud/models/requests/get_image_properties_request.rb
|
118
131
|
- lib/aspose-imaging-cloud/models/requests/get_image_search_status_request.rb
|
132
|
+
- lib/aspose-imaging-cloud/models/requests/get_object_bounds_request.rb
|
119
133
|
- lib/aspose-imaging-cloud/models/requests/get_search_image_request.rb
|
134
|
+
- lib/aspose-imaging-cloud/models/requests/get_visual_object_bounds_request.rb
|
135
|
+
- lib/aspose-imaging-cloud/models/requests/grayscale_image_request.rb
|
120
136
|
- lib/aspose-imaging-cloud/models/requests/http_request.rb
|
121
137
|
- lib/aspose-imaging-cloud/models/requests/imaging_request.rb
|
122
138
|
- lib/aspose-imaging-cloud/models/requests/modify_bmp_request.rb
|
@@ -131,6 +147,7 @@ files:
|
|
131
147
|
- lib/aspose-imaging-cloud/models/requests/modify_wmf_request.rb
|
132
148
|
- lib/aspose-imaging-cloud/models/requests/move_file_request.rb
|
133
149
|
- lib/aspose-imaging-cloud/models/requests/move_folder_request.rb
|
150
|
+
- lib/aspose-imaging-cloud/models/requests/object_bounds_request.rb
|
134
151
|
- lib/aspose-imaging-cloud/models/requests/object_exists_request.rb
|
135
152
|
- lib/aspose-imaging-cloud/models/requests/resize_image_request.rb
|
136
153
|
- lib/aspose-imaging-cloud/models/requests/rotate_flip_image_request.rb
|
@@ -140,6 +157,7 @@ files:
|
|
140
157
|
- lib/aspose-imaging-cloud/models/requests/update_image_request.rb
|
141
158
|
- lib/aspose-imaging-cloud/models/requests/update_search_image_request.rb
|
142
159
|
- lib/aspose-imaging-cloud/models/requests/upload_file_request.rb
|
160
|
+
- lib/aspose-imaging-cloud/models/requests/visual_object_bounds_request.rb
|
143
161
|
- lib/aspose-imaging-cloud/models/search_context_status.rb
|
144
162
|
- lib/aspose-imaging-cloud/models/search_result.rb
|
145
163
|
- lib/aspose-imaging-cloud/models/search_results_set.rb
|
@@ -166,7 +184,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
166
184
|
requirements:
|
167
185
|
- - ">="
|
168
186
|
- !ruby/object:Gem::Version
|
169
|
-
version:
|
187
|
+
version: 2.5.1
|
170
188
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
171
189
|
requirements:
|
172
190
|
- - ">="
|