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="add_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="append_tiff_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="compare_images_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="convert_tiff_to_fax_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="copy_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
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="copy_folder_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="create_cropped_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,20 +33,20 @@ module AsposeImagingCloud
|
|
33
33
|
|
34
34
|
# Crop an 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
|
-
# @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] out_path Path to updated file (if this is empty, response contains streamed image).
|
42
42
|
# @param [String] storage Your Aspose Cloud Storage name.
|
43
|
-
def initialize(image_data,
|
43
|
+
def initialize(image_data, x, y, width, height, format = nil, out_path = nil, storage = nil)
|
44
44
|
@image_data = image_data
|
45
|
-
@format = format
|
46
45
|
@x = x
|
47
46
|
@y = y
|
48
47
|
@width = width
|
49
48
|
@height = height
|
49
|
+
@format = format
|
50
50
|
@out_path = out_path
|
51
51
|
@storage = storage
|
52
52
|
end
|
@@ -57,11 +57,6 @@ module AsposeImagingCloud
|
|
57
57
|
raise ArgumentError, "Missing the required parameter 'image_data' when calling ImagingApi.create_cropped_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.create_cropped_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.create_cropped_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[:outPath] = @out_path unless @out_path.nil?
|
96
91
|
query_params[:storage] = @storage unless @storage.nil?
|
97
92
|
|
@@ -0,0 +1,92 @@
|
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="create_deskewed_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 create_deskewed_image operation.
|
32
|
+
class CreateDeskewedImageRequest < ImagingRequest
|
33
|
+
|
34
|
+
# Deskew an image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
|
35
|
+
# @param [File] image_data Input image
|
36
|
+
# @param [BOOLEAN] resize_proportionally Resize proportionally
|
37
|
+
# @param [String] bk_color Background color
|
38
|
+
# @param [String] out_path Path to updated file (if this is empty, response contains streamed image)
|
39
|
+
# @param [String] storage Your Aspose Cloud Storage name.
|
40
|
+
def initialize(image_data, resize_proportionally, bk_color = nil, out_path = nil, storage = nil)
|
41
|
+
@image_data = image_data
|
42
|
+
@resize_proportionally = resize_proportionally
|
43
|
+
@bk_color = bk_color
|
44
|
+
@out_path = out_path
|
45
|
+
@storage = storage
|
46
|
+
end
|
47
|
+
|
48
|
+
def to_http_info(config)
|
49
|
+
# verify the required parameter 'image_data' is set
|
50
|
+
if config.client_side_validation && @image_data.nil?
|
51
|
+
raise ArgumentError, "Missing the required parameter 'image_data' when calling ImagingApi.create_deskewed_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.create_deskewed_image"
|
57
|
+
end
|
58
|
+
|
59
|
+
# resource path
|
60
|
+
local_var_path = '/imaging/deskew'
|
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[:outPath] = @out_path unless @out_path.nil?
|
67
|
+
query_params[:storage] = @storage unless @storage.nil?
|
68
|
+
|
69
|
+
# form parameters
|
70
|
+
form_params = {}
|
71
|
+
form_params['imageData'] = @image_data
|
72
|
+
|
73
|
+
# http body (model)
|
74
|
+
post_body = nil
|
75
|
+
auth_names = ['JWT']
|
76
|
+
|
77
|
+
# header parameters
|
78
|
+
header_params = {}
|
79
|
+
# HTTP header 'Accept' (if needed)
|
80
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
81
|
+
# HTTP header 'Content-Type'
|
82
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['multipart/form-data'])
|
83
|
+
|
84
|
+
AsposeImagingCloud::HttpRequest.new(local_var_path,
|
85
|
+
header_params,
|
86
|
+
query_params,
|
87
|
+
form_params,
|
88
|
+
post_body,
|
89
|
+
auth_names)
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="create_fax_tiff_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 create_fax_tiff operation.
|
32
|
+
class CreateFaxTiffRequest < ImagingRequest
|
33
|
+
|
34
|
+
# 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.
|
35
|
+
# @param [File] image_data Input image
|
36
|
+
# @param [String] out_path Path to updated file (if this is empty, response contains streamed image).
|
37
|
+
# @param [String] storage Your Aspose Cloud Storage name.
|
38
|
+
def initialize(image_data, out_path = nil, storage = nil)
|
39
|
+
@image_data = image_data
|
40
|
+
@out_path = out_path
|
41
|
+
@storage = storage
|
42
|
+
end
|
43
|
+
|
44
|
+
def to_http_info(config)
|
45
|
+
# verify the required parameter 'image_data' is set
|
46
|
+
if config.client_side_validation && @image_data.nil?
|
47
|
+
raise ArgumentError, "Missing the required parameter 'image_data' when calling ImagingApi.create_fax_tiff"
|
48
|
+
end
|
49
|
+
|
50
|
+
# resource path
|
51
|
+
local_var_path = '/imaging/tiff/toFax'
|
52
|
+
|
53
|
+
# query parameters
|
54
|
+
query_params = {}
|
55
|
+
query_params[:outPath] = @out_path unless @out_path.nil?
|
56
|
+
query_params[:storage] = @storage unless @storage.nil?
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = {}
|
60
|
+
form_params['imageData'] = @image_data
|
61
|
+
|
62
|
+
# http body (model)
|
63
|
+
post_body = nil
|
64
|
+
auth_names = ['JWT']
|
65
|
+
|
66
|
+
# header parameters
|
67
|
+
header_params = {}
|
68
|
+
# HTTP header 'Accept' (if needed)
|
69
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
70
|
+
# HTTP header 'Content-Type'
|
71
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['multipart/form-data'])
|
72
|
+
|
73
|
+
AsposeImagingCloud::HttpRequest.new(local_var_path,
|
74
|
+
header_params,
|
75
|
+
query_params,
|
76
|
+
form_params,
|
77
|
+
post_body,
|
78
|
+
auth_names)
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="create_folder_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
|
@@ -0,0 +1,81 @@
|
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="create_grayscaled_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 create_grayscaled_image operation.
|
32
|
+
class CreateGrayscaledImageRequest < ImagingRequest
|
33
|
+
|
34
|
+
# Grayscales an image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
|
35
|
+
# @param [File] image_data Input image
|
36
|
+
# @param [String] out_path Path to updated file (if this is empty, response contains streamed image)
|
37
|
+
# @param [String] storage Your Aspose Cloud Storage name.
|
38
|
+
def initialize(image_data, out_path = nil, storage = nil)
|
39
|
+
@image_data = image_data
|
40
|
+
@out_path = out_path
|
41
|
+
@storage = storage
|
42
|
+
end
|
43
|
+
|
44
|
+
def to_http_info(config)
|
45
|
+
# verify the required parameter 'image_data' is set
|
46
|
+
if config.client_side_validation && @image_data.nil?
|
47
|
+
raise ArgumentError, "Missing the required parameter 'image_data' when calling ImagingApi.create_grayscaled_image"
|
48
|
+
end
|
49
|
+
|
50
|
+
# resource path
|
51
|
+
local_var_path = '/imaging/grayscale'
|
52
|
+
|
53
|
+
# query parameters
|
54
|
+
query_params = {}
|
55
|
+
query_params[:outPath] = @out_path unless @out_path.nil?
|
56
|
+
query_params[:storage] = @storage unless @storage.nil?
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = {}
|
60
|
+
form_params['imageData'] = @image_data
|
61
|
+
|
62
|
+
# http body (model)
|
63
|
+
post_body = nil
|
64
|
+
auth_names = ['JWT']
|
65
|
+
|
66
|
+
# header parameters
|
67
|
+
header_params = {}
|
68
|
+
# HTTP header 'Accept' (if needed)
|
69
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
70
|
+
# HTTP header 'Content-Type'
|
71
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['multipart/form-data'])
|
72
|
+
|
73
|
+
AsposeImagingCloud::HttpRequest.new(local_var_path,
|
74
|
+
header_params,
|
75
|
+
query_params,
|
76
|
+
form_params,
|
77
|
+
post_body,
|
78
|
+
auth_names)
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="create_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
|
@@ -0,0 +1,121 @@
|
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="create_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 create_image_frame_range operation.
|
32
|
+
class CreateImageFrameRangeRequest < ImagingRequest
|
33
|
+
|
34
|
+
# Get separate frame from existing image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
|
35
|
+
# @param [File] image_data Input 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] out_path Path to updated file (if this is empty, response contains streamed image).
|
47
|
+
# @param [String] storage Your Aspose Cloud Storage name.
|
48
|
+
def initialize(image_data, 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, out_path = nil, storage = nil)
|
49
|
+
@image_data = image_data
|
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
|
+
@out_path = out_path
|
61
|
+
@storage = storage
|
62
|
+
end
|
63
|
+
|
64
|
+
def to_http_info(config)
|
65
|
+
# verify the required parameter 'image_data' is set
|
66
|
+
if config.client_side_validation && @image_data.nil?
|
67
|
+
raise ArgumentError, "Missing the required parameter 'image_data' when calling ImagingApi.create_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.create_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.create_image_frame_range"
|
78
|
+
end
|
79
|
+
|
80
|
+
# resource path
|
81
|
+
local_var_path = '/imaging/frames/range'
|
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[:outPath] = @out_path unless @out_path.nil?
|
96
|
+
query_params[:storage] = @storage unless @storage.nil?
|
97
|
+
|
98
|
+
# form parameters
|
99
|
+
form_params = {}
|
100
|
+
form_params['imageData'] = @image_data
|
101
|
+
|
102
|
+
# http body (model)
|
103
|
+
post_body = nil
|
104
|
+
auth_names = ['JWT']
|
105
|
+
|
106
|
+
# header parameters
|
107
|
+
header_params = {}
|
108
|
+
# HTTP header 'Accept' (if needed)
|
109
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
110
|
+
# HTTP header 'Content-Type'
|
111
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['multipart/form-data'])
|
112
|
+
|
113
|
+
AsposeImagingCloud::HttpRequest.new(local_var_path,
|
114
|
+
header_params,
|
115
|
+
query_params,
|
116
|
+
form_params,
|
117
|
+
post_body,
|
118
|
+
auth_names)
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|