aspose_imaging_cloud 19.12 → 20.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -12
  3. data/lib/aspose-imaging-cloud.rb +75 -59
  4. data/lib/aspose-imaging-cloud/api/imaging_api.rb +93 -5
  5. data/lib/aspose-imaging-cloud/api_client.rb +2 -2
  6. data/lib/aspose-imaging-cloud/api_error.rb +2 -2
  7. data/lib/aspose-imaging-cloud/configuration.rb +1 -1
  8. data/lib/aspose-imaging-cloud/models/big_rectangular_filter_properties.rb +1 -1
  9. data/lib/aspose-imaging-cloud/models/bilateral_smoothing_filter_properties.rb +1 -1
  10. data/lib/aspose-imaging-cloud/models/bmp_properties.rb +1 -1
  11. data/lib/aspose-imaging-cloud/models/convolution_filter_properties.rb +1 -1
  12. data/lib/aspose-imaging-cloud/models/deconvolution_filter_properties.rb +1 -1
  13. data/lib/aspose-imaging-cloud/models/detected_object.rb +228 -0
  14. data/lib/aspose-imaging-cloud/models/detected_object_list.rb +204 -0
  15. data/lib/aspose-imaging-cloud/models/dicom_properties.rb +1 -1
  16. data/lib/aspose-imaging-cloud/models/disc_usage.rb +1 -1
  17. data/lib/aspose-imaging-cloud/models/djvu_properties.rb +1 -1
  18. data/lib/aspose-imaging-cloud/models/dng_properties.rb +1 -1
  19. data/lib/aspose-imaging-cloud/models/error.rb +1 -1
  20. data/lib/aspose-imaging-cloud/models/error_details.rb +1 -1
  21. data/lib/aspose-imaging-cloud/models/exif_data.rb +1 -1
  22. data/lib/aspose-imaging-cloud/models/file_version.rb +1 -1
  23. data/lib/aspose-imaging-cloud/models/file_versions.rb +1 -1
  24. data/lib/aspose-imaging-cloud/models/files_list.rb +1 -1
  25. data/lib/aspose-imaging-cloud/models/files_upload_result.rb +1 -1
  26. data/lib/aspose-imaging-cloud/models/filter_properties_base.rb +1 -1
  27. data/lib/aspose-imaging-cloud/models/gauss_wiener_filter_properties.rb +1 -1
  28. data/lib/aspose-imaging-cloud/models/gaussian_blur_filter_properties.rb +1 -1
  29. data/lib/aspose-imaging-cloud/models/gif_properties.rb +1 -1
  30. data/lib/aspose-imaging-cloud/models/image_duplicates.rb +1 -1
  31. data/lib/aspose-imaging-cloud/models/image_duplicates_set.rb +1 -1
  32. data/lib/aspose-imaging-cloud/models/image_features.rb +1 -1
  33. data/lib/aspose-imaging-cloud/models/imaging_response.rb +1 -1
  34. data/lib/aspose-imaging-cloud/models/jfif_data.rb +1 -1
  35. data/lib/aspose-imaging-cloud/models/jpeg2000_properties.rb +1 -1
  36. data/lib/aspose-imaging-cloud/models/jpeg_exif_data.rb +1 -1
  37. data/lib/aspose-imaging-cloud/models/jpeg_properties.rb +1 -1
  38. data/lib/aspose-imaging-cloud/models/median_filter_properties.rb +1 -1
  39. data/lib/aspose-imaging-cloud/models/motion_wiener_filter_properties.rb +1 -1
  40. data/lib/aspose-imaging-cloud/models/object_exist.rb +1 -1
  41. data/lib/aspose-imaging-cloud/models/odg_metadata.rb +1 -1
  42. data/lib/aspose-imaging-cloud/models/odg_page.rb +1 -1
  43. data/lib/aspose-imaging-cloud/models/odg_properties.rb +1 -1
  44. data/lib/aspose-imaging-cloud/models/png_properties.rb +1 -1
  45. data/lib/aspose-imaging-cloud/models/psd_properties.rb +1 -1
  46. data/lib/aspose-imaging-cloud/models/rectangle.rb +247 -0
  47. data/lib/aspose-imaging-cloud/models/requests/add_search_image_request.rb +1 -1
  48. data/lib/aspose-imaging-cloud/models/requests/append_tiff_request.rb +1 -1
  49. data/lib/aspose-imaging-cloud/models/requests/compare_images_request.rb +1 -1
  50. data/lib/aspose-imaging-cloud/models/requests/convert_tiff_to_fax_request.rb +1 -1
  51. data/lib/aspose-imaging-cloud/models/requests/copy_file_request.rb +1 -1
  52. data/lib/aspose-imaging-cloud/models/requests/copy_folder_request.rb +1 -1
  53. data/lib/aspose-imaging-cloud/models/requests/create_cropped_image_request.rb +5 -10
  54. data/lib/aspose-imaging-cloud/models/requests/create_deskewed_image_request.rb +92 -0
  55. data/lib/aspose-imaging-cloud/models/requests/create_fax_tiff_request.rb +81 -0
  56. data/lib/aspose-imaging-cloud/models/requests/create_folder_request.rb +1 -1
  57. data/lib/aspose-imaging-cloud/models/requests/create_grayscaled_image_request.rb +81 -0
  58. data/lib/aspose-imaging-cloud/models/requests/create_image_features_request.rb +1 -1
  59. data/lib/aspose-imaging-cloud/models/requests/create_image_frame_range_request.rb +121 -0
  60. data/lib/aspose-imaging-cloud/models/requests/create_image_frame_request.rb +2 -2
  61. data/lib/aspose-imaging-cloud/models/requests/create_image_search_request.rb +1 -1
  62. data/lib/aspose-imaging-cloud/models/requests/create_image_tag_request.rb +1 -1
  63. data/lib/aspose-imaging-cloud/models/requests/create_modified_bmp_request.rb +1 -1
  64. data/lib/aspose-imaging-cloud/models/requests/create_modified_emf_request.rb +1 -1
  65. data/lib/aspose-imaging-cloud/models/requests/create_modified_gif_request.rb +1 -1
  66. data/lib/aspose-imaging-cloud/models/requests/create_modified_jpeg2000_request.rb +1 -1
  67. data/lib/aspose-imaging-cloud/models/requests/create_modified_jpeg_request.rb +1 -1
  68. data/lib/aspose-imaging-cloud/models/requests/create_modified_psd_request.rb +1 -1
  69. data/lib/aspose-imaging-cloud/models/requests/create_modified_svg_request.rb +1 -1
  70. data/lib/aspose-imaging-cloud/models/requests/create_modified_tiff_request.rb +1 -1
  71. data/lib/aspose-imaging-cloud/models/requests/create_modified_web_p_request.rb +1 -1
  72. data/lib/aspose-imaging-cloud/models/requests/create_modified_wmf_request.rb +1 -1
  73. data/lib/aspose-imaging-cloud/models/requests/create_object_bounds_request.rb +93 -0
  74. data/lib/aspose-imaging-cloud/models/requests/create_resized_image_request.rb +5 -10
  75. data/lib/aspose-imaging-cloud/models/requests/create_rotate_flipped_image_request.rb +5 -10
  76. data/lib/aspose-imaging-cloud/models/requests/create_saved_image_as_request.rb +1 -1
  77. data/lib/aspose-imaging-cloud/models/requests/create_updated_image_request.rb +5 -10
  78. data/lib/aspose-imaging-cloud/models/requests/create_visual_object_bounds_request.rb +96 -0
  79. data/lib/aspose-imaging-cloud/models/requests/create_web_site_image_features_request.rb +1 -1
  80. data/lib/aspose-imaging-cloud/models/requests/crop_image_request.rb +5 -10
  81. data/lib/aspose-imaging-cloud/models/requests/delete_file_request.rb +1 -1
  82. data/lib/aspose-imaging-cloud/models/requests/delete_folder_request.rb +1 -1
  83. data/lib/aspose-imaging-cloud/models/requests/delete_image_features_request.rb +1 -1
  84. data/lib/aspose-imaging-cloud/models/requests/delete_image_search_request.rb +1 -1
  85. data/lib/aspose-imaging-cloud/models/requests/delete_search_image_request.rb +1 -1
  86. data/lib/aspose-imaging-cloud/models/requests/deskew_image_request.rb +91 -0
  87. data/lib/aspose-imaging-cloud/models/requests/download_file_request.rb +1 -1
  88. data/lib/aspose-imaging-cloud/models/requests/extract_image_features_request.rb +1 -1
  89. data/lib/aspose-imaging-cloud/models/requests/extract_image_frame_properties_request.rb +2 -2
  90. data/lib/aspose-imaging-cloud/models/requests/extract_image_properties_request.rb +1 -1
  91. data/lib/aspose-imaging-cloud/models/requests/filter_effect_image_request.rb +5 -10
  92. data/lib/aspose-imaging-cloud/models/requests/find_image_duplicates_request.rb +1 -1
  93. data/lib/aspose-imaging-cloud/models/requests/find_images_by_tags_request.rb +1 -1
  94. data/lib/aspose-imaging-cloud/models/requests/find_similar_images_request.rb +1 -1
  95. data/lib/aspose-imaging-cloud/models/requests/get_disc_usage_request.rb +1 -1
  96. data/lib/aspose-imaging-cloud/models/requests/get_file_versions_request.rb +1 -1
  97. data/lib/aspose-imaging-cloud/models/requests/get_files_list_request.rb +1 -1
  98. data/lib/aspose-imaging-cloud/models/requests/get_image_features_request.rb +1 -1
  99. data/lib/aspose-imaging-cloud/models/requests/get_image_frame_properties_request.rb +2 -2
  100. data/lib/aspose-imaging-cloud/models/requests/get_image_frame_range_request.rb +120 -0
  101. data/lib/aspose-imaging-cloud/models/requests/get_image_frame_request.rb +2 -2
  102. data/lib/aspose-imaging-cloud/models/requests/get_image_properties_request.rb +1 -1
  103. data/lib/aspose-imaging-cloud/models/requests/get_image_search_status_request.rb +1 -1
  104. data/lib/aspose-imaging-cloud/models/requests/get_object_bounds_request.rb +92 -0
  105. data/lib/aspose-imaging-cloud/models/requests/get_search_image_request.rb +1 -1
  106. data/lib/aspose-imaging-cloud/models/requests/get_visual_object_bounds_request.rb +95 -0
  107. data/lib/aspose-imaging-cloud/models/requests/grayscale_image_request.rb +80 -0
  108. data/lib/aspose-imaging-cloud/models/requests/http_request.rb +2 -1
  109. data/lib/aspose-imaging-cloud/models/requests/imaging_request.rb +1 -1
  110. data/lib/aspose-imaging-cloud/models/requests/modify_bmp_request.rb +1 -1
  111. data/lib/aspose-imaging-cloud/models/requests/modify_emf_request.rb +1 -1
  112. data/lib/aspose-imaging-cloud/models/requests/modify_gif_request.rb +1 -1
  113. data/lib/aspose-imaging-cloud/models/requests/modify_jpeg2000_request.rb +1 -1
  114. data/lib/aspose-imaging-cloud/models/requests/modify_jpeg_request.rb +1 -1
  115. data/lib/aspose-imaging-cloud/models/requests/modify_psd_request.rb +1 -1
  116. data/lib/aspose-imaging-cloud/models/requests/modify_svg_request.rb +1 -1
  117. data/lib/aspose-imaging-cloud/models/requests/modify_tiff_request.rb +1 -1
  118. data/lib/aspose-imaging-cloud/models/requests/modify_web_p_request.rb +1 -1
  119. data/lib/aspose-imaging-cloud/models/requests/modify_wmf_request.rb +1 -1
  120. data/lib/aspose-imaging-cloud/models/requests/move_file_request.rb +1 -1
  121. data/lib/aspose-imaging-cloud/models/requests/move_folder_request.rb +1 -1
  122. data/lib/aspose-imaging-cloud/models/requests/object_bounds_request.rb +93 -0
  123. data/lib/aspose-imaging-cloud/models/requests/object_exists_request.rb +1 -1
  124. data/lib/aspose-imaging-cloud/models/requests/resize_image_request.rb +5 -10
  125. data/lib/aspose-imaging-cloud/models/requests/rotate_flip_image_request.rb +5 -10
  126. data/lib/aspose-imaging-cloud/models/requests/save_image_as_request.rb +1 -1
  127. data/lib/aspose-imaging-cloud/models/requests/storage_exists_request.rb +1 -1
  128. data/lib/aspose-imaging-cloud/models/requests/update_image_features_request.rb +1 -1
  129. data/lib/aspose-imaging-cloud/models/requests/update_image_request.rb +5 -10
  130. data/lib/aspose-imaging-cloud/models/requests/update_search_image_request.rb +1 -1
  131. data/lib/aspose-imaging-cloud/models/requests/upload_file_request.rb +1 -2
  132. data/lib/aspose-imaging-cloud/models/requests/visual_object_bounds_request.rb +94 -0
  133. data/lib/aspose-imaging-cloud/models/search_context_status.rb +1 -1
  134. data/lib/aspose-imaging-cloud/models/search_result.rb +1 -1
  135. data/lib/aspose-imaging-cloud/models/search_results_set.rb +1 -1
  136. data/lib/aspose-imaging-cloud/models/sharpen_filter_properties.rb +1 -1
  137. data/lib/aspose-imaging-cloud/models/small_rectangular_filter_properties.rb +1 -1
  138. data/lib/aspose-imaging-cloud/models/storage_exist.rb +1 -1
  139. data/lib/aspose-imaging-cloud/models/storage_file.rb +1 -1
  140. data/lib/aspose-imaging-cloud/models/svg_properties.rb +1 -1
  141. data/lib/aspose-imaging-cloud/models/tiff_frame.rb +1 -1
  142. data/lib/aspose-imaging-cloud/models/tiff_options.rb +1 -1
  143. data/lib/aspose-imaging-cloud/models/tiff_properties.rb +1 -1
  144. data/lib/aspose-imaging-cloud/models/web_p_properties.rb +1 -1
  145. metadata +23 -5
@@ -1,6 +1,6 @@
1
1
  # ----------------------------------------------------------------------------
2
2
  # <copyright company="Aspose" file="create_web_site_image_features_request.rb">
3
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
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="crop_image_request.rb">
3
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
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,20 +33,20 @@ module AsposeImagingCloud
33
33
 
34
34
  # Crop 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] x X position of start point for cropping rectangle.
38
37
  # @param [Integer] y Y position of start point for cropping rectangle.
39
38
  # @param [Integer] width Width of cropping rectangle
40
39
  # @param [Integer] height Height of cropping rectangle.
40
+ # @param [String] format Resulting image format. Please, refer to https://docs.aspose.cloud/display/imagingcloud/Supported+File+Formats#SupportedFileFormats-CommonOperationsFormatSupportMap for possible use-cases.
41
41
  # @param [String] folder Folder with image to process.
42
42
  # @param [String] storage Your Aspose Cloud Storage name.
43
- def initialize(name, format, x, y, width, height, folder = nil, storage = nil)
43
+ def initialize(name, x, y, width, height, format = nil, folder = nil, storage = nil)
44
44
  @name = name
45
- @format = format
46
45
  @x = x
47
46
  @y = y
48
47
  @width = width
49
48
  @height = height
49
+ @format = format
50
50
  @folder = folder
51
51
  @storage = storage
52
52
  end
@@ -57,11 +57,6 @@ module AsposeImagingCloud
57
57
  raise ArgumentError, "Missing the required parameter 'name' when calling ImagingApi.crop_image"
58
58
  end
59
59
 
60
- # verify the required parameter 'format' is set
61
- if config.client_side_validation && @format.nil?
62
- raise ArgumentError, "Missing the required parameter 'format' when calling ImagingApi.crop_image"
63
- end
64
-
65
60
  # verify the required parameter 'x' is set
66
61
  if config.client_side_validation && @x.nil?
67
62
  raise ArgumentError, "Missing the required parameter 'x' when calling ImagingApi.crop_image"
@@ -87,11 +82,11 @@ module AsposeImagingCloud
87
82
 
88
83
  # query parameters
89
84
  query_params = {}
90
- query_params[:format] = @format
91
85
  query_params[:x] = @x
92
86
  query_params[:y] = @y
93
87
  query_params[:width] = @width
94
88
  query_params[:height] = @height
89
+ query_params[:format] = @format unless @format.nil?
95
90
  query_params[:folder] = @folder unless @folder.nil?
96
91
  query_params[:storage] = @storage unless @storage.nil?
97
92
 
@@ -1,6 +1,6 @@
1
1
  # ----------------------------------------------------------------------------
2
2
  # <copyright company="Aspose" file="delete_file_request.rb">
3
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
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="delete_folder_request.rb">
3
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
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="delete_image_features_request.rb">
3
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
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="delete_image_search_request.rb">
3
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
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="delete_search_image_request.rb">
3
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
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
@@ -0,0 +1,91 @@
1
+ # ----------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="deskew_image_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 deskew_image operation.
32
+ class DeskewImageRequest < ImagingRequest
33
+
34
+ # Deskew an existing image.
35
+ # @param [String] name Image file name.
36
+ # @param [BOOLEAN] resize_proportionally Resize proportionally
37
+ # @param [String] bk_color Background color
38
+ # @param [String] folder Folder
39
+ # @param [String] storage Storage
40
+ def initialize(name, resize_proportionally, bk_color = nil, folder = nil, storage = nil)
41
+ @name = name
42
+ @resize_proportionally = resize_proportionally
43
+ @bk_color = bk_color
44
+ @folder = folder
45
+ @storage = storage
46
+ end
47
+
48
+ def to_http_info(config)
49
+ # verify the required parameter 'name' is set
50
+ if config.client_side_validation && @name.nil?
51
+ raise ArgumentError, "Missing the required parameter 'name' when calling ImagingApi.deskew_image"
52
+ end
53
+
54
+ # verify the required parameter 'resize_proportionally' is set
55
+ if config.client_side_validation && @resize_proportionally.nil?
56
+ raise ArgumentError, "Missing the required parameter 'resize_proportionally' when calling ImagingApi.deskew_image"
57
+ end
58
+
59
+ # resource path
60
+ local_var_path = '/imaging/{name}/deskew'.sub('{' + 'name' + '}', @name.to_s)
61
+
62
+ # query parameters
63
+ query_params = {}
64
+ query_params[:resizeProportionally] = @resize_proportionally
65
+ query_params[:bkColor] = @bk_color unless @bk_color.nil?
66
+ query_params[:folder] = @folder unless @folder.nil?
67
+ query_params[:storage] = @storage unless @storage.nil?
68
+
69
+ # form parameters
70
+ form_params = {}
71
+
72
+ # http body (model)
73
+ post_body = nil
74
+ auth_names = ['JWT']
75
+
76
+ # header parameters
77
+ header_params = {}
78
+ # HTTP header 'Accept' (if needed)
79
+ header_params['Accept'] = select_header_accept(['application/json'])
80
+ # HTTP header 'Content-Type'
81
+ header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
82
+
83
+ AsposeImagingCloud::HttpRequest.new(local_var_path,
84
+ header_params,
85
+ query_params,
86
+ form_params,
87
+ post_body,
88
+ auth_names)
89
+ end
90
+ end
91
+ end
@@ -1,6 +1,6 @@
1
1
  # ----------------------------------------------------------------------------
2
2
  # <copyright company="Aspose" file="download_file_request.rb">
3
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
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="extract_image_features_request.rb">
3
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
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="extract_image_frame_properties_request.rb">
3
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
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
@@ -31,7 +31,7 @@ module AsposeImagingCloud
31
31
  # Request model for extract_image_frame_properties operation.
32
32
  class ExtractImageFramePropertiesRequest < ImagingRequest
33
33
 
34
- # Get separate frame properties of existing TIFF image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
34
+ # Get separate frame properties of existing image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
35
35
  # @param [File] image_data Input image
36
36
  # @param [Integer] frame_id Number of a frame.
37
37
  def initialize(image_data, frame_id)
@@ -1,6 +1,6 @@
1
1
  # ----------------------------------------------------------------------------
2
2
  # <copyright company="Aspose" file="extract_image_properties_request.rb">
3
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
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="filter_effect_image_request.rb">
3
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
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
  # Apply filtering effects to 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] filter_type Filter type (BigRectangular, SmallRectangular, Median, GaussWiener, MotionWiener, GaussianBlur, Sharpen, BilateralSmoothing).
38
37
  # @param [FilterPropertiesBase] filter_properties Filter properties.
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, format, filter_type, filter_properties, folder = nil, storage = nil)
41
+ def initialize(name, filter_type, filter_properties, format = nil, folder = nil, storage = nil)
42
42
  @name = name
43
- @format = format
44
43
  @filter_type = filter_type
45
44
  @filter_properties = filter_properties
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.filter_effect_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.filter_effect_image"
59
- end
60
-
61
56
  # verify the required parameter 'filter_type' is set
62
57
  if config.client_side_validation && @filter_type.nil?
63
58
  raise ArgumentError, "Missing the required parameter 'filter_type' when calling ImagingApi.filter_effect_image"
@@ -73,8 +68,8 @@ module AsposeImagingCloud
73
68
 
74
69
  # query parameters
75
70
  query_params = {}
76
- query_params[:format] = @format
77
71
  query_params[:filterType] = @filter_type
72
+ query_params[:format] = @format unless @format.nil?
78
73
  query_params[:folder] = @folder unless @folder.nil?
79
74
  query_params[:storage] = @storage unless @storage.nil?
80
75
 
@@ -1,6 +1,6 @@
1
1
  # ----------------------------------------------------------------------------
2
2
  # <copyright company="Aspose" file="find_image_duplicates_request.rb">
3
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
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="find_images_by_tags_request.rb">
3
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
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="find_similar_images_request.rb">
3
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
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="get_disc_usage_request.rb">
3
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
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="get_file_versions_request.rb">
3
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
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="get_files_list_request.rb">
3
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
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="get_image_features_request.rb">
3
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
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="get_image_frame_properties_request.rb">
3
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
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
@@ -31,7 +31,7 @@ module AsposeImagingCloud
31
31
  # Request model for get_image_frame_properties operation.
32
32
  class GetImageFramePropertiesRequest < ImagingRequest
33
33
 
34
- # Get separate frame properties of existing TIFF image.
34
+ # Get separate frame properties of existing image.
35
35
  # @param [String] name Filename with image.
36
36
  # @param [Integer] frame_id Number of a frame.
37
37
  # @param [String] folder Folder with image to process.
@@ -0,0 +1,120 @@
1
+ # ----------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="get_image_frame_range_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 get_image_frame_range operation.
32
+ class GetImageFrameRangeRequest < ImagingRequest
33
+
34
+ # Get frames range from existing image.
35
+ # @param [String] name Filename of image.
36
+ # @param [Integer] start_frame_id Index of the first frame in range.
37
+ # @param [Integer] end_frame_id Index of the last frame in range.
38
+ # @param [Integer] new_width New width.
39
+ # @param [Integer] new_height New height.
40
+ # @param [Integer] x X position of start point for cropping rectangle.
41
+ # @param [Integer] y Y position of start point for cropping rectangle.
42
+ # @param [Integer] rect_width Width of cropping rectangle.
43
+ # @param [Integer] rect_height Height of cropping rectangle.
44
+ # @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.
45
+ # @param [BOOLEAN] save_other_frames If result will include all other frames or just a specified frame.
46
+ # @param [String] folder Folder with image to process.
47
+ # @param [String] storage Your Aspose Cloud Storage name.
48
+ def initialize(name, start_frame_id, end_frame_id, new_width = nil, new_height = nil, x = nil, y = nil, rect_width = nil, rect_height = nil, rotate_flip_method = nil, save_other_frames = nil, folder = nil, storage = nil)
49
+ @name = name
50
+ @start_frame_id = start_frame_id
51
+ @end_frame_id = end_frame_id
52
+ @new_width = new_width
53
+ @new_height = new_height
54
+ @x = x
55
+ @y = y
56
+ @rect_width = rect_width
57
+ @rect_height = rect_height
58
+ @rotate_flip_method = rotate_flip_method
59
+ @save_other_frames = save_other_frames
60
+ @folder = folder
61
+ @storage = storage
62
+ end
63
+
64
+ def to_http_info(config)
65
+ # verify the required parameter 'name' is set
66
+ if config.client_side_validation && @name.nil?
67
+ raise ArgumentError, "Missing the required parameter 'name' when calling ImagingApi.get_image_frame_range"
68
+ end
69
+
70
+ # verify the required parameter 'start_frame_id' is set
71
+ if config.client_side_validation && @start_frame_id.nil?
72
+ raise ArgumentError, "Missing the required parameter 'start_frame_id' when calling ImagingApi.get_image_frame_range"
73
+ end
74
+
75
+ # verify the required parameter 'end_frame_id' is set
76
+ if config.client_side_validation && @end_frame_id.nil?
77
+ raise ArgumentError, "Missing the required parameter 'end_frame_id' when calling ImagingApi.get_image_frame_range"
78
+ end
79
+
80
+ # resource path
81
+ local_var_path = '/imaging/{name}/frames/range'.sub('{' + 'name' + '}', @name.to_s)
82
+
83
+ # query parameters
84
+ query_params = {}
85
+ query_params[:startFrameId] = @start_frame_id
86
+ query_params[:endFrameId] = @end_frame_id
87
+ query_params[:newWidth] = @new_width unless @new_width.nil?
88
+ query_params[:newHeight] = @new_height unless @new_height.nil?
89
+ query_params[:x] = @x unless @x.nil?
90
+ query_params[:y] = @y unless @y.nil?
91
+ query_params[:rectWidth] = @rect_width unless @rect_width.nil?
92
+ query_params[:rectHeight] = @rect_height unless @rect_height.nil?
93
+ query_params[:rotateFlipMethod] = @rotate_flip_method unless @rotate_flip_method.nil?
94
+ query_params[:saveOtherFrames] = @save_other_frames unless @save_other_frames.nil?
95
+ query_params[:folder] = @folder unless @folder.nil?
96
+ query_params[:storage] = @storage unless @storage.nil?
97
+
98
+ # form parameters
99
+ form_params = {}
100
+
101
+ # http body (model)
102
+ post_body = nil
103
+ auth_names = ['JWT']
104
+
105
+ # header parameters
106
+ header_params = {}
107
+ # HTTP header 'Accept' (if needed)
108
+ header_params['Accept'] = select_header_accept(['application/json'])
109
+ # HTTP header 'Content-Type'
110
+ header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
111
+
112
+ AsposeImagingCloud::HttpRequest.new(local_var_path,
113
+ header_params,
114
+ query_params,
115
+ form_params,
116
+ post_body,
117
+ auth_names)
118
+ end
119
+ end
120
+ end