cloudmersive-image-recognition-api-client 1.4.3 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +19 -16
- data/cloudmersive-image-recognition-api-client.gemspec +3 -3
- data/docs/ArtisticApi.md +2 -2
- data/docs/ConvertApi.md +13 -13
- data/docs/DrawTextInstance.md +1 -1
- data/docs/EditApi.md +188 -23
- data/docs/FaceApi.md +20 -20
- data/docs/FaceLocateResponse.md +1 -1
- data/docs/FilterApi.md +11 -11
- data/docs/ImageMetadata.md +2 -0
- data/docs/InfoApi.md +5 -5
- data/docs/NsfwApi.md +4 -4
- data/docs/RecognizeApi.md +17 -17
- data/docs/ResizeApi.md +10 -10
- data/lib/cloudmersive-image-recognition-api-client.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/api/artistic_api.rb +6 -7
- data/lib/cloudmersive-image-recognition-api-client/api/convert_api.rb +35 -42
- data/lib/cloudmersive-image-recognition-api-client/api/edit_api.rb +215 -59
- data/lib/cloudmersive-image-recognition-api-client/api/face_api.rb +39 -46
- data/lib/cloudmersive-image-recognition-api-client/api/filter_api.rb +36 -44
- data/lib/cloudmersive-image-recognition-api-client/api/info_api.rb +12 -14
- data/lib/cloudmersive-image-recognition-api-client/api/nsfw_api.rb +8 -9
- data/lib/cloudmersive-image-recognition-api-client/api/recognize_api.rb +41 -49
- data/lib/cloudmersive-image-recognition-api-client/api/resize_api.rb +20 -22
- data/lib/cloudmersive-image-recognition-api-client/api_client.rb +11 -9
- data/lib/cloudmersive-image-recognition-api-client/api_error.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/configuration.rb +2 -2
- data/lib/cloudmersive-image-recognition-api-client/models/age_detection_result.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/color_result.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/detected_license_plate.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/detected_object.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/dominant_color_result.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_instance.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_request.rb +9 -13
- data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_instance.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_request.rb +9 -13
- data/lib/cloudmersive-image-recognition-api-client/models/draw_text_instance.rb +8 -11
- data/lib/cloudmersive-image-recognition-api-client/models/draw_text_request.rb +9 -13
- data/lib/cloudmersive-image-recognition-api-client/models/face.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/face_compare_response.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/face_locate_response.rb +19 -21
- data/lib/cloudmersive-image-recognition-api-client/models/face_locate_with_landmarks_response.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/face_match.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/face_point.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/face_with_landmarks.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/find_symbol_result.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/fine_text_detection_result.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/fine_text_item.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/gender_detection_result.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/image_description_response.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/image_metadata.rb +28 -11
- data/lib/cloudmersive-image-recognition-api-client/models/image_metadata_exif_value.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/nsfw_result.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/object_detection_result.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/person_with_age.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/person_with_gender.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/polygon_point.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/recognition_outcome.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/text_detection_result.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/text_item.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/vehicle_license_plate_detection_result.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/version.rb +2 -2
- data/spec/api/artistic_api_spec.rb +2 -2
- data/spec/api/convert_api_spec.rb +9 -9
- data/spec/api/edit_api_spec.rb +51 -15
- data/spec/api/face_api_spec.rb +12 -12
- data/spec/api/filter_api_spec.rb +10 -10
- data/spec/api/info_api_spec.rb +4 -4
- data/spec/api/nsfw_api_spec.rb +3 -3
- data/spec/api/recognize_api_spec.rb +12 -12
- data/spec/api/resize_api_spec.rb +7 -7
- data/spec/api_client_spec.rb +52 -35
- data/spec/configuration_spec.rb +9 -9
- data/spec/models/age_detection_result_spec.rb +4 -5
- data/spec/models/color_result_spec.rb +4 -5
- data/spec/models/detected_license_plate_spec.rb +8 -9
- data/spec/models/detected_object_spec.rb +7 -8
- data/spec/models/dominant_color_result_spec.rb +3 -4
- data/spec/models/draw_polygon_instance_spec.rb +5 -6
- data/spec/models/draw_polygon_request_spec.rb +4 -5
- data/spec/models/draw_rectangle_instance_spec.rb +8 -9
- data/spec/models/draw_rectangle_request_spec.rb +4 -5
- data/spec/models/draw_text_instance_spec.rb +9 -10
- data/spec/models/draw_text_request_spec.rb +4 -5
- data/spec/models/face_compare_response_spec.rb +5 -6
- data/spec/models/face_locate_response_spec.rb +9 -10
- data/spec/models/face_locate_with_landmarks_response_spec.rb +5 -6
- data/spec/models/face_match_spec.rb +7 -8
- data/spec/models/face_point_spec.rb +3 -4
- data/spec/models/face_spec.rb +5 -6
- data/spec/models/face_with_landmarks_spec.rb +14 -15
- data/spec/models/find_symbol_result_spec.rb +7 -8
- data/spec/models/fine_text_detection_result_spec.rb +4 -5
- data/spec/models/fine_text_item_spec.rb +12 -13
- data/spec/models/gender_detection_result_spec.rb +4 -5
- data/spec/models/image_description_response_spec.rb +5 -6
- data/spec/models/image_metadata_exif_value_spec.rb +4 -5
- data/spec/models/image_metadata_spec.rb +21 -10
- data/spec/models/nsfw_result_spec.rb +4 -5
- data/spec/models/object_detection_result_spec.rb +4 -5
- data/spec/models/person_with_age_spec.rb +5 -6
- data/spec/models/person_with_gender_spec.rb +4 -5
- data/spec/models/polygon_point_spec.rb +3 -4
- data/spec/models/recognition_outcome_spec.rb +3 -4
- data/spec/models/text_detection_result_spec.rb +4 -5
- data/spec/models/text_item_spec.rb +5 -6
- data/spec/models/vehicle_license_plate_detection_result_spec.rb +4 -5
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
@@ -6,11 +6,11 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module CloudmersiveImageRecognitionApiClient
|
16
16
|
class ArtisticApi
|
@@ -19,7 +19,6 @@ module CloudmersiveImageRecognitionApiClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# Transform an image into an artistic painting automatically
|
24
23
|
# Uses machine learning to automatically transform an image into an artistic painting. Due to depth of AI processing, depending on image size this operation can take up to 20 seconds.
|
25
24
|
# @param style The style of the painting to apply. To start, try \"udnie\" a painting style. Possible values are: \"udnie\", \"wave\", \"la_muse\", \"rain_princess\".
|
@@ -28,7 +27,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
28
27
|
# @return [String]
|
29
28
|
def artistic_painting(style, image_file, opts = {})
|
30
29
|
data, _status_code, _headers = artistic_painting_with_http_info(style, image_file, opts)
|
31
|
-
|
30
|
+
data
|
32
31
|
end
|
33
32
|
|
34
33
|
# Transform an image into an artistic painting automatically
|
@@ -39,7 +38,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
39
38
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
40
39
|
def artistic_painting_with_http_info(style, image_file, opts = {})
|
41
40
|
if @api_client.config.debugging
|
42
|
-
@api_client.config.logger.debug
|
41
|
+
@api_client.config.logger.debug 'Calling API: ArtisticApi.artistic_painting ...'
|
43
42
|
end
|
44
43
|
# verify the required parameter 'style' is set
|
45
44
|
if @api_client.config.client_side_validation && style.nil?
|
@@ -50,7 +49,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
50
49
|
fail ArgumentError, "Missing the required parameter 'image_file' when calling ArtisticApi.artistic_painting"
|
51
50
|
end
|
52
51
|
# resource path
|
53
|
-
local_var_path =
|
52
|
+
local_var_path = '/image/artistic/painting/{style}'.sub('{' + 'style' + '}', style.to_s)
|
54
53
|
|
55
54
|
# query parameters
|
56
55
|
query_params = {}
|
@@ -64,7 +63,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
64
63
|
|
65
64
|
# form parameters
|
66
65
|
form_params = {}
|
67
|
-
form_params[
|
66
|
+
form_params['imageFile'] = image_file
|
68
67
|
|
69
68
|
# http body (model)
|
70
69
|
post_body = nil
|
@@ -6,11 +6,11 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module CloudmersiveImageRecognitionApiClient
|
16
16
|
class ConvertApi
|
@@ -19,7 +19,6 @@ module CloudmersiveImageRecognitionApiClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# Convert input image to Bitmap BMP format
|
24
23
|
# Converts the input image into PSD format. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
25
24
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
@@ -27,7 +26,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
27
26
|
# @return [String]
|
28
27
|
def convert_to_bmp(image_file, opts = {})
|
29
28
|
data, _status_code, _headers = convert_to_bmp_with_http_info(image_file, opts)
|
30
|
-
|
29
|
+
data
|
31
30
|
end
|
32
31
|
|
33
32
|
# Convert input image to Bitmap BMP format
|
@@ -37,14 +36,14 @@ module CloudmersiveImageRecognitionApiClient
|
|
37
36
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
38
37
|
def convert_to_bmp_with_http_info(image_file, opts = {})
|
39
38
|
if @api_client.config.debugging
|
40
|
-
@api_client.config.logger.debug
|
39
|
+
@api_client.config.logger.debug 'Calling API: ConvertApi.convert_to_bmp ...'
|
41
40
|
end
|
42
41
|
# verify the required parameter 'image_file' is set
|
43
42
|
if @api_client.config.client_side_validation && image_file.nil?
|
44
43
|
fail ArgumentError, "Missing the required parameter 'image_file' when calling ConvertApi.convert_to_bmp"
|
45
44
|
end
|
46
45
|
# resource path
|
47
|
-
local_var_path =
|
46
|
+
local_var_path = '/image/convert/to/bmp'
|
48
47
|
|
49
48
|
# query parameters
|
50
49
|
query_params = {}
|
@@ -58,7 +57,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
58
57
|
|
59
58
|
# form parameters
|
60
59
|
form_params = {}
|
61
|
-
form_params[
|
60
|
+
form_params['imageFile'] = image_file
|
62
61
|
|
63
62
|
# http body (model)
|
64
63
|
post_body = nil
|
@@ -75,7 +74,6 @@ module CloudmersiveImageRecognitionApiClient
|
|
75
74
|
end
|
76
75
|
return data, status_code, headers
|
77
76
|
end
|
78
|
-
|
79
77
|
# Convert input image to GIF format
|
80
78
|
# Converts the input image into GIF format. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
81
79
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
@@ -83,7 +81,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
83
81
|
# @return [String]
|
84
82
|
def convert_to_gif(image_file, opts = {})
|
85
83
|
data, _status_code, _headers = convert_to_gif_with_http_info(image_file, opts)
|
86
|
-
|
84
|
+
data
|
87
85
|
end
|
88
86
|
|
89
87
|
# Convert input image to GIF format
|
@@ -93,14 +91,14 @@ module CloudmersiveImageRecognitionApiClient
|
|
93
91
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
94
92
|
def convert_to_gif_with_http_info(image_file, opts = {})
|
95
93
|
if @api_client.config.debugging
|
96
|
-
@api_client.config.logger.debug
|
94
|
+
@api_client.config.logger.debug 'Calling API: ConvertApi.convert_to_gif ...'
|
97
95
|
end
|
98
96
|
# verify the required parameter 'image_file' is set
|
99
97
|
if @api_client.config.client_side_validation && image_file.nil?
|
100
98
|
fail ArgumentError, "Missing the required parameter 'image_file' when calling ConvertApi.convert_to_gif"
|
101
99
|
end
|
102
100
|
# resource path
|
103
|
-
local_var_path =
|
101
|
+
local_var_path = '/image/convert/to/gif'
|
104
102
|
|
105
103
|
# query parameters
|
106
104
|
query_params = {}
|
@@ -108,13 +106,13 @@ module CloudmersiveImageRecognitionApiClient
|
|
108
106
|
# header parameters
|
109
107
|
header_params = {}
|
110
108
|
# HTTP header 'Accept' (if needed)
|
111
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
109
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
112
110
|
# HTTP header 'Content-Type'
|
113
111
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
114
112
|
|
115
113
|
# form parameters
|
116
114
|
form_params = {}
|
117
|
-
form_params[
|
115
|
+
form_params['imageFile'] = image_file
|
118
116
|
|
119
117
|
# http body (model)
|
120
118
|
post_body = nil
|
@@ -131,8 +129,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
131
129
|
end
|
132
130
|
return data, status_code, headers
|
133
131
|
end
|
134
|
-
|
135
|
-
# Convert input image to JPG/JPEG format
|
132
|
+
# Convert input image to JPG, JPEG format
|
136
133
|
# Converts the input image into JPEG/JPG format. Customize encoding parameters. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
137
134
|
# @param quality Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75
|
138
135
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
@@ -140,10 +137,10 @@ module CloudmersiveImageRecognitionApiClient
|
|
140
137
|
# @return [String]
|
141
138
|
def convert_to_jpg(quality, image_file, opts = {})
|
142
139
|
data, _status_code, _headers = convert_to_jpg_with_http_info(quality, image_file, opts)
|
143
|
-
|
140
|
+
data
|
144
141
|
end
|
145
142
|
|
146
|
-
# Convert input image to JPG
|
143
|
+
# Convert input image to JPG, JPEG format
|
147
144
|
# Converts the input image into JPEG/JPG format. Customize encoding parameters. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
148
145
|
# @param quality Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75
|
149
146
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
@@ -151,7 +148,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
151
148
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
152
149
|
def convert_to_jpg_with_http_info(quality, image_file, opts = {})
|
153
150
|
if @api_client.config.debugging
|
154
|
-
@api_client.config.logger.debug
|
151
|
+
@api_client.config.logger.debug 'Calling API: ConvertApi.convert_to_jpg ...'
|
155
152
|
end
|
156
153
|
# verify the required parameter 'quality' is set
|
157
154
|
if @api_client.config.client_side_validation && quality.nil?
|
@@ -162,7 +159,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
162
159
|
fail ArgumentError, "Missing the required parameter 'image_file' when calling ConvertApi.convert_to_jpg"
|
163
160
|
end
|
164
161
|
# resource path
|
165
|
-
local_var_path =
|
162
|
+
local_var_path = '/image/convert/to/jpg/{quality}'.sub('{' + 'quality' + '}', quality.to_s)
|
166
163
|
|
167
164
|
# query parameters
|
168
165
|
query_params = {}
|
@@ -170,13 +167,13 @@ module CloudmersiveImageRecognitionApiClient
|
|
170
167
|
# header parameters
|
171
168
|
header_params = {}
|
172
169
|
# HTTP header 'Accept' (if needed)
|
173
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
170
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
174
171
|
# HTTP header 'Content-Type'
|
175
172
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
176
173
|
|
177
174
|
# form parameters
|
178
175
|
form_params = {}
|
179
|
-
form_params[
|
176
|
+
form_params['imageFile'] = image_file
|
180
177
|
|
181
178
|
# http body (model)
|
182
179
|
post_body = nil
|
@@ -193,7 +190,6 @@ module CloudmersiveImageRecognitionApiClient
|
|
193
190
|
end
|
194
191
|
return data, status_code, headers
|
195
192
|
end
|
196
|
-
|
197
193
|
# Convert input image to Photoshop PSD format
|
198
194
|
# Converts the input image into PSD format. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
199
195
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
@@ -201,7 +197,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
201
197
|
# @return [String]
|
202
198
|
def convert_to_photoshop(image_file, opts = {})
|
203
199
|
data, _status_code, _headers = convert_to_photoshop_with_http_info(image_file, opts)
|
204
|
-
|
200
|
+
data
|
205
201
|
end
|
206
202
|
|
207
203
|
# Convert input image to Photoshop PSD format
|
@@ -211,14 +207,14 @@ module CloudmersiveImageRecognitionApiClient
|
|
211
207
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
212
208
|
def convert_to_photoshop_with_http_info(image_file, opts = {})
|
213
209
|
if @api_client.config.debugging
|
214
|
-
@api_client.config.logger.debug
|
210
|
+
@api_client.config.logger.debug 'Calling API: ConvertApi.convert_to_photoshop ...'
|
215
211
|
end
|
216
212
|
# verify the required parameter 'image_file' is set
|
217
213
|
if @api_client.config.client_side_validation && image_file.nil?
|
218
214
|
fail ArgumentError, "Missing the required parameter 'image_file' when calling ConvertApi.convert_to_photoshop"
|
219
215
|
end
|
220
216
|
# resource path
|
221
|
-
local_var_path =
|
217
|
+
local_var_path = '/image/convert/to/psd'
|
222
218
|
|
223
219
|
# query parameters
|
224
220
|
query_params = {}
|
@@ -232,7 +228,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
232
228
|
|
233
229
|
# form parameters
|
234
230
|
form_params = {}
|
235
|
-
form_params[
|
231
|
+
form_params['imageFile'] = image_file
|
236
232
|
|
237
233
|
# http body (model)
|
238
234
|
post_body = nil
|
@@ -249,7 +245,6 @@ module CloudmersiveImageRecognitionApiClient
|
|
249
245
|
end
|
250
246
|
return data, status_code, headers
|
251
247
|
end
|
252
|
-
|
253
248
|
# Convert input image to PNG format
|
254
249
|
# Converts the input image into PNG format. Transparency is preserved when present. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
255
250
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
@@ -257,7 +252,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
257
252
|
# @return [String]
|
258
253
|
def convert_to_png(image_file, opts = {})
|
259
254
|
data, _status_code, _headers = convert_to_png_with_http_info(image_file, opts)
|
260
|
-
|
255
|
+
data
|
261
256
|
end
|
262
257
|
|
263
258
|
# Convert input image to PNG format
|
@@ -267,14 +262,14 @@ module CloudmersiveImageRecognitionApiClient
|
|
267
262
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
268
263
|
def convert_to_png_with_http_info(image_file, opts = {})
|
269
264
|
if @api_client.config.debugging
|
270
|
-
@api_client.config.logger.debug
|
265
|
+
@api_client.config.logger.debug 'Calling API: ConvertApi.convert_to_png ...'
|
271
266
|
end
|
272
267
|
# verify the required parameter 'image_file' is set
|
273
268
|
if @api_client.config.client_side_validation && image_file.nil?
|
274
269
|
fail ArgumentError, "Missing the required parameter 'image_file' when calling ConvertApi.convert_to_png"
|
275
270
|
end
|
276
271
|
# resource path
|
277
|
-
local_var_path =
|
272
|
+
local_var_path = '/image/convert/to/png'
|
278
273
|
|
279
274
|
# query parameters
|
280
275
|
query_params = {}
|
@@ -282,13 +277,13 @@ module CloudmersiveImageRecognitionApiClient
|
|
282
277
|
# header parameters
|
283
278
|
header_params = {}
|
284
279
|
# HTTP header 'Accept' (if needed)
|
285
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
280
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
286
281
|
# HTTP header 'Content-Type'
|
287
282
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
288
283
|
|
289
284
|
# form parameters
|
290
285
|
form_params = {}
|
291
|
-
form_params[
|
286
|
+
form_params['imageFile'] = image_file
|
292
287
|
|
293
288
|
# http body (model)
|
294
289
|
post_body = nil
|
@@ -305,7 +300,6 @@ module CloudmersiveImageRecognitionApiClient
|
|
305
300
|
end
|
306
301
|
return data, status_code, headers
|
307
302
|
end
|
308
|
-
|
309
303
|
# Convert input image to TIFF format
|
310
304
|
# Converts the input image into TIFF format. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
311
305
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
@@ -313,7 +307,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
313
307
|
# @return [String]
|
314
308
|
def convert_to_tiff(image_file, opts = {})
|
315
309
|
data, _status_code, _headers = convert_to_tiff_with_http_info(image_file, opts)
|
316
|
-
|
310
|
+
data
|
317
311
|
end
|
318
312
|
|
319
313
|
# Convert input image to TIFF format
|
@@ -323,14 +317,14 @@ module CloudmersiveImageRecognitionApiClient
|
|
323
317
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
324
318
|
def convert_to_tiff_with_http_info(image_file, opts = {})
|
325
319
|
if @api_client.config.debugging
|
326
|
-
@api_client.config.logger.debug
|
320
|
+
@api_client.config.logger.debug 'Calling API: ConvertApi.convert_to_tiff ...'
|
327
321
|
end
|
328
322
|
# verify the required parameter 'image_file' is set
|
329
323
|
if @api_client.config.client_side_validation && image_file.nil?
|
330
324
|
fail ArgumentError, "Missing the required parameter 'image_file' when calling ConvertApi.convert_to_tiff"
|
331
325
|
end
|
332
326
|
# resource path
|
333
|
-
local_var_path =
|
327
|
+
local_var_path = '/image/convert/to/tiff'
|
334
328
|
|
335
329
|
# query parameters
|
336
330
|
query_params = {}
|
@@ -344,7 +338,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
344
338
|
|
345
339
|
# form parameters
|
346
340
|
form_params = {}
|
347
|
-
form_params[
|
341
|
+
form_params['imageFile'] = image_file
|
348
342
|
|
349
343
|
# http body (model)
|
350
344
|
post_body = nil
|
@@ -361,7 +355,6 @@ module CloudmersiveImageRecognitionApiClient
|
|
361
355
|
end
|
362
356
|
return data, status_code, headers
|
363
357
|
end
|
364
|
-
|
365
358
|
# Convert input image to WebP format
|
366
359
|
# Converts the input image into WebP format. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
367
360
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
@@ -369,7 +362,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
369
362
|
# @return [String]
|
370
363
|
def convert_to_web_p(image_file, opts = {})
|
371
364
|
data, _status_code, _headers = convert_to_web_p_with_http_info(image_file, opts)
|
372
|
-
|
365
|
+
data
|
373
366
|
end
|
374
367
|
|
375
368
|
# Convert input image to WebP format
|
@@ -379,14 +372,14 @@ module CloudmersiveImageRecognitionApiClient
|
|
379
372
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
380
373
|
def convert_to_web_p_with_http_info(image_file, opts = {})
|
381
374
|
if @api_client.config.debugging
|
382
|
-
@api_client.config.logger.debug
|
375
|
+
@api_client.config.logger.debug 'Calling API: ConvertApi.convert_to_web_p ...'
|
383
376
|
end
|
384
377
|
# verify the required parameter 'image_file' is set
|
385
378
|
if @api_client.config.client_side_validation && image_file.nil?
|
386
379
|
fail ArgumentError, "Missing the required parameter 'image_file' when calling ConvertApi.convert_to_web_p"
|
387
380
|
end
|
388
381
|
# resource path
|
389
|
-
local_var_path =
|
382
|
+
local_var_path = '/image/convert/to/webp'
|
390
383
|
|
391
384
|
# query parameters
|
392
385
|
query_params = {}
|
@@ -400,7 +393,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
400
393
|
|
401
394
|
# form parameters
|
402
395
|
form_params = {}
|
403
|
-
form_params[
|
396
|
+
form_params['imageFile'] = image_file
|
404
397
|
|
405
398
|
# http body (model)
|
406
399
|
post_body = nil
|
@@ -6,11 +6,11 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module CloudmersiveImageRecognitionApiClient
|
16
16
|
class EditApi
|
@@ -19,7 +19,6 @@ module CloudmersiveImageRecognitionApiClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# Normalizes image rotation and removes EXIF rotation data
|
24
23
|
# Automatically orients the input image based on EXIF information and then removes the EXIF information. EXIF is an additional set of information stored in some images taken with cell phone cameras based on the orientation of the camera. By normalizing rotation and removing EXIF data these images become much easier to process.
|
25
24
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
@@ -27,7 +26,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
27
26
|
# @return [String]
|
28
27
|
def edit_auto_orient(image_file, opts = {})
|
29
28
|
data, _status_code, _headers = edit_auto_orient_with_http_info(image_file, opts)
|
30
|
-
|
29
|
+
data
|
31
30
|
end
|
32
31
|
|
33
32
|
# Normalizes image rotation and removes EXIF rotation data
|
@@ -37,14 +36,14 @@ module CloudmersiveImageRecognitionApiClient
|
|
37
36
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
38
37
|
def edit_auto_orient_with_http_info(image_file, opts = {})
|
39
38
|
if @api_client.config.debugging
|
40
|
-
@api_client.config.logger.debug
|
39
|
+
@api_client.config.logger.debug 'Calling API: EditApi.edit_auto_orient ...'
|
41
40
|
end
|
42
41
|
# verify the required parameter 'image_file' is set
|
43
42
|
if @api_client.config.client_side_validation && image_file.nil?
|
44
43
|
fail ArgumentError, "Missing the required parameter 'image_file' when calling EditApi.edit_auto_orient"
|
45
44
|
end
|
46
45
|
# resource path
|
47
|
-
local_var_path =
|
46
|
+
local_var_path = '/image/edit/auto-orient/remove-exif'
|
48
47
|
|
49
48
|
# query parameters
|
50
49
|
query_params = {}
|
@@ -58,7 +57,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
58
57
|
|
59
58
|
# form parameters
|
60
59
|
form_params = {}
|
61
|
-
form_params[
|
60
|
+
form_params['imageFile'] = image_file
|
62
61
|
|
63
62
|
# http body (model)
|
64
63
|
post_body = nil
|
@@ -75,7 +74,6 @@ module CloudmersiveImageRecognitionApiClient
|
|
75
74
|
end
|
76
75
|
return data, status_code, headers
|
77
76
|
end
|
78
|
-
|
79
77
|
# Composite two images together
|
80
78
|
# Composites two input images together; a layered image onto a base image. The first image you input is the base image. The second image (the layered image) will be composited on top of this base image. Supports PNG transparency. To control padding you can include transparent pixels at the border(s) of your layered images as appropriate.
|
81
79
|
# @param location Location to composite the layered images; possible values are: \"center\", \"top-left\", \"top-center\", \"top-right\", \"center-left\", \"center-right\", \"bottom-left\", \"bottom-center\", \"bottom-right\"
|
@@ -85,7 +83,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
85
83
|
# @return [String]
|
86
84
|
def edit_composite_basic(location, base_image, layered_image, opts = {})
|
87
85
|
data, _status_code, _headers = edit_composite_basic_with_http_info(location, base_image, layered_image, opts)
|
88
|
-
|
86
|
+
data
|
89
87
|
end
|
90
88
|
|
91
89
|
# Composite two images together
|
@@ -97,7 +95,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
97
95
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
98
96
|
def edit_composite_basic_with_http_info(location, base_image, layered_image, opts = {})
|
99
97
|
if @api_client.config.debugging
|
100
|
-
@api_client.config.logger.debug
|
98
|
+
@api_client.config.logger.debug 'Calling API: EditApi.edit_composite_basic ...'
|
101
99
|
end
|
102
100
|
# verify the required parameter 'location' is set
|
103
101
|
if @api_client.config.client_side_validation && location.nil?
|
@@ -112,7 +110,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
112
110
|
fail ArgumentError, "Missing the required parameter 'layered_image' when calling EditApi.edit_composite_basic"
|
113
111
|
end
|
114
112
|
# resource path
|
115
|
-
local_var_path =
|
113
|
+
local_var_path = '/image/edit/composite/{location}'.sub('{' + 'location' + '}', location.to_s)
|
116
114
|
|
117
115
|
# query parameters
|
118
116
|
query_params = {}
|
@@ -120,14 +118,14 @@ module CloudmersiveImageRecognitionApiClient
|
|
120
118
|
# header parameters
|
121
119
|
header_params = {}
|
122
120
|
# HTTP header 'Accept' (if needed)
|
123
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
121
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
124
122
|
# HTTP header 'Content-Type'
|
125
123
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
126
124
|
|
127
125
|
# form parameters
|
128
126
|
form_params = {}
|
129
|
-
form_params[
|
130
|
-
form_params[
|
127
|
+
form_params['baseImage'] = base_image
|
128
|
+
form_params['layeredImage'] = layered_image
|
131
129
|
|
132
130
|
# http body (model)
|
133
131
|
post_body = nil
|
@@ -144,7 +142,6 @@ module CloudmersiveImageRecognitionApiClient
|
|
144
142
|
end
|
145
143
|
return data, status_code, headers
|
146
144
|
end
|
147
|
-
|
148
145
|
# Adaptively adjust the contrast of the image to be more appealing and easy to see
|
149
146
|
# Uses Gamma to adjust the contrast adaptively the way the human eye sees the world. Results significantly improve the viewability and visual appeal of the image.
|
150
147
|
# @param gamma Gamma value to adjust the contrast in the image. Recommended value is 2.0. Values between 0.0 and 1.0 will reduce contrast, while values above 1.0 will increase contrast.
|
@@ -153,7 +150,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
153
150
|
# @return [String]
|
154
151
|
def edit_contrast_adaptive(gamma, image_file, opts = {})
|
155
152
|
data, _status_code, _headers = edit_contrast_adaptive_with_http_info(gamma, image_file, opts)
|
156
|
-
|
153
|
+
data
|
157
154
|
end
|
158
155
|
|
159
156
|
# Adaptively adjust the contrast of the image to be more appealing and easy to see
|
@@ -164,7 +161,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
164
161
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
165
162
|
def edit_contrast_adaptive_with_http_info(gamma, image_file, opts = {})
|
166
163
|
if @api_client.config.debugging
|
167
|
-
@api_client.config.logger.debug
|
164
|
+
@api_client.config.logger.debug 'Calling API: EditApi.edit_contrast_adaptive ...'
|
168
165
|
end
|
169
166
|
# verify the required parameter 'gamma' is set
|
170
167
|
if @api_client.config.client_side_validation && gamma.nil?
|
@@ -175,7 +172,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
175
172
|
fail ArgumentError, "Missing the required parameter 'image_file' when calling EditApi.edit_contrast_adaptive"
|
176
173
|
end
|
177
174
|
# resource path
|
178
|
-
local_var_path =
|
175
|
+
local_var_path = '/image/edit/contrast/{gamma}/adaptive'.sub('{' + 'gamma' + '}', gamma.to_s)
|
179
176
|
|
180
177
|
# query parameters
|
181
178
|
query_params = {}
|
@@ -183,13 +180,13 @@ module CloudmersiveImageRecognitionApiClient
|
|
183
180
|
# header parameters
|
184
181
|
header_params = {}
|
185
182
|
# HTTP header 'Accept' (if needed)
|
186
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
183
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
187
184
|
# HTTP header 'Content-Type'
|
188
185
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
189
186
|
|
190
187
|
# form parameters
|
191
188
|
form_params = {}
|
192
|
-
form_params[
|
189
|
+
form_params['imageFile'] = image_file
|
193
190
|
|
194
191
|
# http body (model)
|
195
192
|
post_body = nil
|
@@ -206,7 +203,6 @@ module CloudmersiveImageRecognitionApiClient
|
|
206
203
|
end
|
207
204
|
return data, status_code, headers
|
208
205
|
end
|
209
|
-
|
210
206
|
# Crop an image to a rectangular area
|
211
207
|
# Crop an image to a target rectangular area
|
212
208
|
# @param left The left edge of the rectangular crop area in pixels (X).
|
@@ -218,7 +214,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
218
214
|
# @return [String]
|
219
215
|
def edit_crop_rectangle(left, top, width, height, image_file, opts = {})
|
220
216
|
data, _status_code, _headers = edit_crop_rectangle_with_http_info(left, top, width, height, image_file, opts)
|
221
|
-
|
217
|
+
data
|
222
218
|
end
|
223
219
|
|
224
220
|
# Crop an image to a rectangular area
|
@@ -232,7 +228,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
232
228
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
233
229
|
def edit_crop_rectangle_with_http_info(left, top, width, height, image_file, opts = {})
|
234
230
|
if @api_client.config.debugging
|
235
|
-
@api_client.config.logger.debug
|
231
|
+
@api_client.config.logger.debug 'Calling API: EditApi.edit_crop_rectangle ...'
|
236
232
|
end
|
237
233
|
# verify the required parameter 'left' is set
|
238
234
|
if @api_client.config.client_side_validation && left.nil?
|
@@ -255,7 +251,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
255
251
|
fail ArgumentError, "Missing the required parameter 'image_file' when calling EditApi.edit_crop_rectangle"
|
256
252
|
end
|
257
253
|
# resource path
|
258
|
-
local_var_path =
|
254
|
+
local_var_path = '/image/edit/crop/rectangle/{left}/{top}/{width}/{height}'.sub('{' + 'left' + '}', left.to_s).sub('{' + 'top' + '}', top.to_s).sub('{' + 'width' + '}', width.to_s).sub('{' + 'height' + '}', height.to_s)
|
259
255
|
|
260
256
|
# query parameters
|
261
257
|
query_params = {}
|
@@ -269,7 +265,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
269
265
|
|
270
266
|
# form parameters
|
271
267
|
form_params = {}
|
272
|
-
form_params[
|
268
|
+
form_params['imageFile'] = image_file
|
273
269
|
|
274
270
|
# http body (model)
|
275
271
|
post_body = nil
|
@@ -286,32 +282,31 @@ module CloudmersiveImageRecognitionApiClient
|
|
286
282
|
end
|
287
283
|
return data, status_code, headers
|
288
284
|
end
|
289
|
-
|
290
285
|
# Draw a polygon onto an image
|
291
286
|
# Draw one or more polygons, with customized visuals, onto an image
|
292
|
-
# @param request
|
287
|
+
# @param request Polygon drawing request parameters
|
293
288
|
# @param [Hash] opts the optional parameters
|
294
289
|
# @return [String]
|
295
290
|
def edit_draw_polygon(request, opts = {})
|
296
291
|
data, _status_code, _headers = edit_draw_polygon_with_http_info(request, opts)
|
297
|
-
|
292
|
+
data
|
298
293
|
end
|
299
294
|
|
300
295
|
# Draw a polygon onto an image
|
301
296
|
# Draw one or more polygons, with customized visuals, onto an image
|
302
|
-
# @param request
|
297
|
+
# @param request Polygon drawing request parameters
|
303
298
|
# @param [Hash] opts the optional parameters
|
304
299
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
305
300
|
def edit_draw_polygon_with_http_info(request, opts = {})
|
306
301
|
if @api_client.config.debugging
|
307
|
-
@api_client.config.logger.debug
|
302
|
+
@api_client.config.logger.debug 'Calling API: EditApi.edit_draw_polygon ...'
|
308
303
|
end
|
309
304
|
# verify the required parameter 'request' is set
|
310
305
|
if @api_client.config.client_side_validation && request.nil?
|
311
306
|
fail ArgumentError, "Missing the required parameter 'request' when calling EditApi.edit_draw_polygon"
|
312
307
|
end
|
313
308
|
# resource path
|
314
|
-
local_var_path =
|
309
|
+
local_var_path = '/image/edit/draw/polygon'
|
315
310
|
|
316
311
|
# query parameters
|
317
312
|
query_params = {}
|
@@ -319,7 +314,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
319
314
|
# header parameters
|
320
315
|
header_params = {}
|
321
316
|
# HTTP header 'Accept' (if needed)
|
322
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
317
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
323
318
|
# HTTP header 'Content-Type'
|
324
319
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
325
320
|
|
@@ -341,32 +336,31 @@ module CloudmersiveImageRecognitionApiClient
|
|
341
336
|
end
|
342
337
|
return data, status_code, headers
|
343
338
|
end
|
344
|
-
|
345
339
|
# Draw a rectangle onto an image
|
346
340
|
# Draw one or more rectangles, with customized visuals, onto an image
|
347
|
-
# @param request
|
341
|
+
# @param request Draw rectangle parameters
|
348
342
|
# @param [Hash] opts the optional parameters
|
349
343
|
# @return [String]
|
350
344
|
def edit_draw_rectangle(request, opts = {})
|
351
345
|
data, _status_code, _headers = edit_draw_rectangle_with_http_info(request, opts)
|
352
|
-
|
346
|
+
data
|
353
347
|
end
|
354
348
|
|
355
349
|
# Draw a rectangle onto an image
|
356
350
|
# Draw one or more rectangles, with customized visuals, onto an image
|
357
|
-
# @param request
|
351
|
+
# @param request Draw rectangle parameters
|
358
352
|
# @param [Hash] opts the optional parameters
|
359
353
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
360
354
|
def edit_draw_rectangle_with_http_info(request, opts = {})
|
361
355
|
if @api_client.config.debugging
|
362
|
-
@api_client.config.logger.debug
|
356
|
+
@api_client.config.logger.debug 'Calling API: EditApi.edit_draw_rectangle ...'
|
363
357
|
end
|
364
358
|
# verify the required parameter 'request' is set
|
365
359
|
if @api_client.config.client_side_validation && request.nil?
|
366
360
|
fail ArgumentError, "Missing the required parameter 'request' when calling EditApi.edit_draw_rectangle"
|
367
361
|
end
|
368
362
|
# resource path
|
369
|
-
local_var_path =
|
363
|
+
local_var_path = '/image/edit/draw/rectangle'
|
370
364
|
|
371
365
|
# query parameters
|
372
366
|
query_params = {}
|
@@ -374,7 +368,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
374
368
|
# header parameters
|
375
369
|
header_params = {}
|
376
370
|
# HTTP header 'Accept' (if needed)
|
377
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
371
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
378
372
|
# HTTP header 'Content-Type'
|
379
373
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
380
374
|
|
@@ -396,32 +390,31 @@ module CloudmersiveImageRecognitionApiClient
|
|
396
390
|
end
|
397
391
|
return data, status_code, headers
|
398
392
|
end
|
399
|
-
|
400
393
|
# Draw text onto an image
|
401
394
|
# Draw one or more pieces of text, with customized visuals, onto an image
|
402
|
-
# @param request
|
395
|
+
# @param request Draw text parameters
|
403
396
|
# @param [Hash] opts the optional parameters
|
404
397
|
# @return [String]
|
405
398
|
def edit_draw_text(request, opts = {})
|
406
399
|
data, _status_code, _headers = edit_draw_text_with_http_info(request, opts)
|
407
|
-
|
400
|
+
data
|
408
401
|
end
|
409
402
|
|
410
403
|
# Draw text onto an image
|
411
404
|
# Draw one or more pieces of text, with customized visuals, onto an image
|
412
|
-
# @param request
|
405
|
+
# @param request Draw text parameters
|
413
406
|
# @param [Hash] opts the optional parameters
|
414
407
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
415
408
|
def edit_draw_text_with_http_info(request, opts = {})
|
416
409
|
if @api_client.config.debugging
|
417
|
-
@api_client.config.logger.debug
|
410
|
+
@api_client.config.logger.debug 'Calling API: EditApi.edit_draw_text ...'
|
418
411
|
end
|
419
412
|
# verify the required parameter 'request' is set
|
420
413
|
if @api_client.config.client_side_validation && request.nil?
|
421
414
|
fail ArgumentError, "Missing the required parameter 'request' when calling EditApi.edit_draw_text"
|
422
415
|
end
|
423
416
|
# resource path
|
424
|
-
local_var_path =
|
417
|
+
local_var_path = '/image/edit/draw/text'
|
425
418
|
|
426
419
|
# query parameters
|
427
420
|
query_params = {}
|
@@ -429,7 +422,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
429
422
|
# header parameters
|
430
423
|
header_params = {}
|
431
424
|
# HTTP header 'Accept' (if needed)
|
432
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
425
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
433
426
|
# HTTP header 'Content-Type'
|
434
427
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
435
428
|
|
@@ -451,11 +444,10 @@ module CloudmersiveImageRecognitionApiClient
|
|
451
444
|
end
|
452
445
|
return data, status_code, headers
|
453
446
|
end
|
454
|
-
|
455
447
|
# Add a customizeable drop shadow to an image
|
456
448
|
# Add a customizeable drop shadow to the image
|
457
|
-
# @param x
|
458
|
-
# @param y
|
449
|
+
# @param x Horizontal (X) offset of the drop shadow
|
450
|
+
# @param y Vertical (Y) offset of the drop shadow
|
459
451
|
# @param sigma Sigma (blur distance) of the drop shadow
|
460
452
|
# @param opacity Opacity of the drop shadow; 0 is 0% and 100 is 100%
|
461
453
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
@@ -463,13 +455,13 @@ module CloudmersiveImageRecognitionApiClient
|
|
463
455
|
# @return [String]
|
464
456
|
def edit_drop_shadow(x, y, sigma, opacity, image_file, opts = {})
|
465
457
|
data, _status_code, _headers = edit_drop_shadow_with_http_info(x, y, sigma, opacity, image_file, opts)
|
466
|
-
|
458
|
+
data
|
467
459
|
end
|
468
460
|
|
469
461
|
# Add a customizeable drop shadow to an image
|
470
462
|
# Add a customizeable drop shadow to the image
|
471
|
-
# @param x
|
472
|
-
# @param y
|
463
|
+
# @param x Horizontal (X) offset of the drop shadow
|
464
|
+
# @param y Vertical (Y) offset of the drop shadow
|
473
465
|
# @param sigma Sigma (blur distance) of the drop shadow
|
474
466
|
# @param opacity Opacity of the drop shadow; 0 is 0% and 100 is 100%
|
475
467
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
@@ -477,7 +469,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
477
469
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
478
470
|
def edit_drop_shadow_with_http_info(x, y, sigma, opacity, image_file, opts = {})
|
479
471
|
if @api_client.config.debugging
|
480
|
-
@api_client.config.logger.debug
|
472
|
+
@api_client.config.logger.debug 'Calling API: EditApi.edit_drop_shadow ...'
|
481
473
|
end
|
482
474
|
# verify the required parameter 'x' is set
|
483
475
|
if @api_client.config.client_side_validation && x.nil?
|
@@ -500,7 +492,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
500
492
|
fail ArgumentError, "Missing the required parameter 'image_file' when calling EditApi.edit_drop_shadow"
|
501
493
|
end
|
502
494
|
# resource path
|
503
|
-
local_var_path =
|
495
|
+
local_var_path = '/image/edit/drop-shadow/{X}/{Y}/{sigma}/{opacity}'.sub('{' + 'X' + '}', x.to_s).sub('{' + 'Y' + '}', y.to_s).sub('{' + 'sigma' + '}', sigma.to_s).sub('{' + 'opacity' + '}', opacity.to_s)
|
504
496
|
|
505
497
|
# query parameters
|
506
498
|
query_params = {}
|
@@ -514,7 +506,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
514
506
|
|
515
507
|
# form parameters
|
516
508
|
form_params = {}
|
517
|
-
form_params[
|
509
|
+
form_params['imageFile'] = image_file
|
518
510
|
|
519
511
|
# http body (model)
|
520
512
|
post_body = nil
|
@@ -531,7 +523,171 @@ module CloudmersiveImageRecognitionApiClient
|
|
531
523
|
end
|
532
524
|
return data, status_code, headers
|
533
525
|
end
|
526
|
+
# Invert, negate the colors in the image
|
527
|
+
# Inverts (negates) all of the colors in the image. If the image contains transparency, the transparency will first be removed prior to inverting the image.
|
528
|
+
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
529
|
+
# @param [Hash] opts the optional parameters
|
530
|
+
# @return [String]
|
531
|
+
def edit_invert(image_file, opts = {})
|
532
|
+
data, _status_code, _headers = edit_invert_with_http_info(image_file, opts)
|
533
|
+
data
|
534
|
+
end
|
535
|
+
|
536
|
+
# Invert, negate the colors in the image
|
537
|
+
# Inverts (negates) all of the colors in the image. If the image contains transparency, the transparency will first be removed prior to inverting the image.
|
538
|
+
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
539
|
+
# @param [Hash] opts the optional parameters
|
540
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
541
|
+
def edit_invert_with_http_info(image_file, opts = {})
|
542
|
+
if @api_client.config.debugging
|
543
|
+
@api_client.config.logger.debug 'Calling API: EditApi.edit_invert ...'
|
544
|
+
end
|
545
|
+
# verify the required parameter 'image_file' is set
|
546
|
+
if @api_client.config.client_side_validation && image_file.nil?
|
547
|
+
fail ArgumentError, "Missing the required parameter 'image_file' when calling EditApi.edit_invert"
|
548
|
+
end
|
549
|
+
# resource path
|
550
|
+
local_var_path = '/image/edit/invert'
|
551
|
+
|
552
|
+
# query parameters
|
553
|
+
query_params = {}
|
554
|
+
|
555
|
+
# header parameters
|
556
|
+
header_params = {}
|
557
|
+
# HTTP header 'Accept' (if needed)
|
558
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
559
|
+
# HTTP header 'Content-Type'
|
560
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
561
|
+
|
562
|
+
# form parameters
|
563
|
+
form_params = {}
|
564
|
+
form_params['imageFile'] = image_file
|
565
|
+
|
566
|
+
# http body (model)
|
567
|
+
post_body = nil
|
568
|
+
auth_names = ['Apikey']
|
569
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
570
|
+
:header_params => header_params,
|
571
|
+
:query_params => query_params,
|
572
|
+
:form_params => form_params,
|
573
|
+
:body => post_body,
|
574
|
+
:auth_names => auth_names,
|
575
|
+
:return_type => 'String')
|
576
|
+
if @api_client.config.debugging
|
577
|
+
@api_client.config.logger.debug "API called: EditApi#edit_invert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
578
|
+
end
|
579
|
+
return data, status_code, headers
|
580
|
+
end
|
581
|
+
# Remove EXIF data from the image
|
582
|
+
# Removes any EXIF data and profiles .
|
583
|
+
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
584
|
+
# @param [Hash] opts the optional parameters
|
585
|
+
# @return [String]
|
586
|
+
def edit_remove_exif_data(image_file, opts = {})
|
587
|
+
data, _status_code, _headers = edit_remove_exif_data_with_http_info(image_file, opts)
|
588
|
+
data
|
589
|
+
end
|
590
|
+
|
591
|
+
# Remove EXIF data from the image
|
592
|
+
# Removes any EXIF data and profiles .
|
593
|
+
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
594
|
+
# @param [Hash] opts the optional parameters
|
595
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
596
|
+
def edit_remove_exif_data_with_http_info(image_file, opts = {})
|
597
|
+
if @api_client.config.debugging
|
598
|
+
@api_client.config.logger.debug 'Calling API: EditApi.edit_remove_exif_data ...'
|
599
|
+
end
|
600
|
+
# verify the required parameter 'image_file' is set
|
601
|
+
if @api_client.config.client_side_validation && image_file.nil?
|
602
|
+
fail ArgumentError, "Missing the required parameter 'image_file' when calling EditApi.edit_remove_exif_data"
|
603
|
+
end
|
604
|
+
# resource path
|
605
|
+
local_var_path = '/image/edit/remove-exif'
|
606
|
+
|
607
|
+
# query parameters
|
608
|
+
query_params = {}
|
609
|
+
|
610
|
+
# header parameters
|
611
|
+
header_params = {}
|
612
|
+
# HTTP header 'Accept' (if needed)
|
613
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
614
|
+
# HTTP header 'Content-Type'
|
615
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
616
|
+
|
617
|
+
# form parameters
|
618
|
+
form_params = {}
|
619
|
+
form_params['imageFile'] = image_file
|
620
|
+
|
621
|
+
# http body (model)
|
622
|
+
post_body = nil
|
623
|
+
auth_names = ['Apikey']
|
624
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
625
|
+
:header_params => header_params,
|
626
|
+
:query_params => query_params,
|
627
|
+
:form_params => form_params,
|
628
|
+
:body => post_body,
|
629
|
+
:auth_names => auth_names,
|
630
|
+
:return_type => 'String')
|
631
|
+
if @api_client.config.debugging
|
632
|
+
@api_client.config.logger.debug "API called: EditApi#edit_remove_exif_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
633
|
+
end
|
634
|
+
return data, status_code, headers
|
635
|
+
end
|
636
|
+
# Remove transparency from the image
|
637
|
+
# Removes any active transparency in the image. Effectively renders the image at the same resolution, in the same file format, over a white background, thus removing transparency.
|
638
|
+
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
639
|
+
# @param [Hash] opts the optional parameters
|
640
|
+
# @return [String]
|
641
|
+
def edit_remove_transparency(image_file, opts = {})
|
642
|
+
data, _status_code, _headers = edit_remove_transparency_with_http_info(image_file, opts)
|
643
|
+
data
|
644
|
+
end
|
534
645
|
|
646
|
+
# Remove transparency from the image
|
647
|
+
# Removes any active transparency in the image. Effectively renders the image at the same resolution, in the same file format, over a white background, thus removing transparency.
|
648
|
+
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
649
|
+
# @param [Hash] opts the optional parameters
|
650
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
651
|
+
def edit_remove_transparency_with_http_info(image_file, opts = {})
|
652
|
+
if @api_client.config.debugging
|
653
|
+
@api_client.config.logger.debug 'Calling API: EditApi.edit_remove_transparency ...'
|
654
|
+
end
|
655
|
+
# verify the required parameter 'image_file' is set
|
656
|
+
if @api_client.config.client_side_validation && image_file.nil?
|
657
|
+
fail ArgumentError, "Missing the required parameter 'image_file' when calling EditApi.edit_remove_transparency"
|
658
|
+
end
|
659
|
+
# resource path
|
660
|
+
local_var_path = '/image/edit/remove-transparency'
|
661
|
+
|
662
|
+
# query parameters
|
663
|
+
query_params = {}
|
664
|
+
|
665
|
+
# header parameters
|
666
|
+
header_params = {}
|
667
|
+
# HTTP header 'Accept' (if needed)
|
668
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
669
|
+
# HTTP header 'Content-Type'
|
670
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
671
|
+
|
672
|
+
# form parameters
|
673
|
+
form_params = {}
|
674
|
+
form_params['imageFile'] = image_file
|
675
|
+
|
676
|
+
# http body (model)
|
677
|
+
post_body = nil
|
678
|
+
auth_names = ['Apikey']
|
679
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
680
|
+
:header_params => header_params,
|
681
|
+
:query_params => query_params,
|
682
|
+
:form_params => form_params,
|
683
|
+
:body => post_body,
|
684
|
+
:auth_names => auth_names,
|
685
|
+
:return_type => 'String')
|
686
|
+
if @api_client.config.debugging
|
687
|
+
@api_client.config.logger.debug "API called: EditApi#edit_remove_transparency\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
688
|
+
end
|
689
|
+
return data, status_code, headers
|
690
|
+
end
|
535
691
|
# Rotate an image any number of degrees
|
536
692
|
# Rotates an image by an arbitrary number of degrees
|
537
693
|
# @param degrees Degrees to rotate the image; values range from 0.0 to 360.0.
|
@@ -540,7 +696,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
540
696
|
# @return [String]
|
541
697
|
def edit_rotate(degrees, image_file, opts = {})
|
542
698
|
data, _status_code, _headers = edit_rotate_with_http_info(degrees, image_file, opts)
|
543
|
-
|
699
|
+
data
|
544
700
|
end
|
545
701
|
|
546
702
|
# Rotate an image any number of degrees
|
@@ -551,7 +707,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
551
707
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
552
708
|
def edit_rotate_with_http_info(degrees, image_file, opts = {})
|
553
709
|
if @api_client.config.debugging
|
554
|
-
@api_client.config.logger.debug
|
710
|
+
@api_client.config.logger.debug 'Calling API: EditApi.edit_rotate ...'
|
555
711
|
end
|
556
712
|
# verify the required parameter 'degrees' is set
|
557
713
|
if @api_client.config.client_side_validation && degrees.nil?
|
@@ -562,7 +718,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
562
718
|
fail ArgumentError, "Missing the required parameter 'image_file' when calling EditApi.edit_rotate"
|
563
719
|
end
|
564
720
|
# resource path
|
565
|
-
local_var_path =
|
721
|
+
local_var_path = '/image/edit/rotate/{degrees}/angle'.sub('{' + 'degrees' + '}', degrees.to_s)
|
566
722
|
|
567
723
|
# query parameters
|
568
724
|
query_params = {}
|
@@ -576,7 +732,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
576
732
|
|
577
733
|
# form parameters
|
578
734
|
form_params = {}
|
579
|
-
form_params[
|
735
|
+
form_params['imageFile'] = image_file
|
580
736
|
|
581
737
|
# http body (model)
|
582
738
|
post_body = nil
|