cloudmersive-image-recognition-api-client 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c0360e6e05c3b0449baf31e4ddae2b046e4924b40bd6a622e5e976abdb4b231
4
- data.tar.gz: 843cc9f496d640233011dac1c4c98f7e695fb113ffc80c777c71faee679bd691
3
+ metadata.gz: d0b96629494c49b6fdab80aee6bc5ed6042d383a7a360dee356d67462ad75371
4
+ data.tar.gz: 23ead2888a81fea8a522522c3eb5f3bfa414a9bf1f9550789af667913d72f392
5
5
  SHA512:
6
- metadata.gz: 1ac97466d431755f933c4fe2993d960feb3aa3f6b59fe8ce93a433505041b3d6a2a044248dac10ce7c8575b744f6ec3be7c4a260772c04672aec313c2c743c66
7
- data.tar.gz: 43d218eafcc9c261a61244f3fd4e38f92e88fa098181e6f47ce284cbc981261d43f2e7f318228d37cc3b1aac0130d8396a3d4923a412dd96a653283fb512c68b
6
+ metadata.gz: f98d9ad14e246470f5b69e605ef1ae858ea75552c19d4c4060d7cb4760ba3dc61c67b5ff8466387246b94338900bf741cbecd44d48379107df0146d8ac091b88
7
+ data.tar.gz: e93c7b877e2cf7e64805dbb41253f9ccb824b504b8cb5d94bbf0d3db7eb7f1c2d1ac3af1855927823ae033f79ef7a4a6976002cdc982f1e9a65ef060bd16a949
data/README.md CHANGED
@@ -7,7 +7,7 @@ Image Recognition and Processing APIs let you use Machine Learning to recognize
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: v1
10
- - Package version: 2.0.2
10
+ - Package version: 2.0.3
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,15 +23,15 @@ gem build cloudmersive-image-recognition-api-client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./cloudmersive-image-recognition-api-client-2.0.2.gem
26
+ gem install ./cloudmersive-image-recognition-api-client-2.0.3.gem
27
27
  ```
28
- (for development, run `gem install --dev ./cloudmersive-image-recognition-api-client-2.0.2.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./cloudmersive-image-recognition-api-client-2.0.3.gem` to install the development dependencies)
29
29
 
30
30
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
31
 
32
32
  Finally add this to the Gemfile:
33
33
 
34
- gem 'cloudmersive-image-recognition-api-client', '~> 2.0.2'
34
+ gem 'cloudmersive-image-recognition-api-client', '~> 2.0.3'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -95,7 +95,9 @@ Class | Method | HTTP request | Description
95
95
  *CloudmersiveImageRecognitionApiClient::ConvertApi* | [**convert_to_web_p**](docs/ConvertApi.md#convert_to_web_p) | **POST** /image/convert/to/webp | Convert input image to WebP format
96
96
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_auto_orient**](docs/EditApi.md#edit_auto_orient) | **POST** /image/edit/auto-orient/remove-exif | Normalizes image rotation and removes EXIF rotation data
97
97
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_composite_basic**](docs/EditApi.md#edit_composite_basic) | **POST** /image/edit/composite/{location} | Composite two images together
98
+ *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_composite_precise**](docs/EditApi.md#edit_composite_precise) | **POST** /image/edit/composite/precise | Composite two images together precisely
98
99
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_contrast_adaptive**](docs/EditApi.md#edit_contrast_adaptive) | **POST** /image/edit/contrast/{gamma}/adaptive | Adaptively adjust the contrast of the image to be more appealing and easy to see
100
+ *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_crop_circle**](docs/EditApi.md#edit_crop_circle) | **POST** /image/edit/crop/circle/{left}/{top}/{radius} | Crop an image to an circular area
99
101
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_crop_rectangle**](docs/EditApi.md#edit_crop_rectangle) | **POST** /image/edit/crop/rectangle/{left}/{top}/{width}/{height} | Crop an image to a rectangular area
100
102
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_draw_polygon**](docs/EditApi.md#edit_draw_polygon) | **POST** /image/edit/draw/polygon | Draw a polygon onto an image
101
103
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_draw_rectangle**](docs/EditApi.md#edit_draw_rectangle) | **POST** /image/edit/draw/rectangle | Draw a rectangle onto an image
@@ -6,7 +6,9 @@ Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**edit_auto_orient**](EditApi.md#edit_auto_orient) | **POST** /image/edit/auto-orient/remove-exif | Normalizes image rotation and removes EXIF rotation data
8
8
  [**edit_composite_basic**](EditApi.md#edit_composite_basic) | **POST** /image/edit/composite/{location} | Composite two images together
9
+ [**edit_composite_precise**](EditApi.md#edit_composite_precise) | **POST** /image/edit/composite/precise | Composite two images together precisely
9
10
  [**edit_contrast_adaptive**](EditApi.md#edit_contrast_adaptive) | **POST** /image/edit/contrast/{gamma}/adaptive | Adaptively adjust the contrast of the image to be more appealing and easy to see
11
+ [**edit_crop_circle**](EditApi.md#edit_crop_circle) | **POST** /image/edit/crop/circle/{left}/{top}/{radius} | Crop an image to an circular area
10
12
  [**edit_crop_rectangle**](EditApi.md#edit_crop_rectangle) | **POST** /image/edit/crop/rectangle/{left}/{top}/{width}/{height} | Crop an image to a rectangular area
11
13
  [**edit_draw_polygon**](EditApi.md#edit_draw_polygon) | **POST** /image/edit/draw/polygon | Draw a polygon onto an image
12
14
  [**edit_draw_rectangle**](EditApi.md#edit_draw_rectangle) | **POST** /image/edit/draw/rectangle | Draw a rectangle onto an image
@@ -132,6 +134,77 @@ Name | Type | Description | Notes
132
134
 
133
135
 
134
136
 
137
+ # **edit_composite_precise**
138
+ > String edit_composite_precise(base_image, layered_image, opts)
139
+
140
+ Composite two images together precisely
141
+
142
+ Composites two input images together; a layered image onto a base image. Position is based on distance in pixels from each side. 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. Providing multiple parameters in a single axis (for example top and bottom) is not recommended, since only one of the parameters will be used per axis.
143
+
144
+ ### Example
145
+ ```ruby
146
+ # load the gem
147
+ require 'cloudmersive-image-recognition-api-client'
148
+ # setup authorization
149
+ CloudmersiveImageRecognitionApiClient.configure do |config|
150
+ # Configure API key authorization: Apikey
151
+ config.api_key['Apikey'] = 'YOUR API KEY'
152
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
153
+ #config.api_key_prefix['Apikey'] = 'Bearer'
154
+ end
155
+
156
+ api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
157
+
158
+ base_image = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
159
+
160
+ layered_image = File.new('/path/to/file.txt') # File | Image to layer on top of the base image.
161
+
162
+ opts = {
163
+ top: 56, # Integer | Optional; Desired distance in pixels from the top of the base image to the top of the layered image.
164
+ bottom: 56, # Integer | Optional; Desired distance in pixels from the bottom of the base image to the bottom of the layered image.
165
+ left: 56, # Integer | Optional; Desired distance in pixels from the left side of the base image to the left side of the layered image.
166
+ right: 56, # Integer | Optional; Desired distance in pixels from the right side of the base image to the right side of the layered image.
167
+ width: 56, # Integer | Optional; Desired width of the layered image in pixels. Leave height empty or 0 to automatically scale the image proportionally.
168
+ height: 56 # Integer | Optional; Desired height of the layered image in pixels. Leave width empty or 0 to automatically scale the image proportionally.
169
+ }
170
+
171
+ begin
172
+ #Composite two images together precisely
173
+ result = api_instance.edit_composite_precise(base_image, layered_image, opts)
174
+ p result
175
+ rescue CloudmersiveImageRecognitionApiClient::ApiError => e
176
+ puts "Exception when calling EditApi->edit_composite_precise: #{e}"
177
+ end
178
+ ```
179
+
180
+ ### Parameters
181
+
182
+ Name | Type | Description | Notes
183
+ ------------- | ------------- | ------------- | -------------
184
+ **base_image** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
185
+ **layered_image** | **File**| Image to layer on top of the base image. |
186
+ **top** | **Integer**| Optional; Desired distance in pixels from the top of the base image to the top of the layered image. | [optional]
187
+ **bottom** | **Integer**| Optional; Desired distance in pixels from the bottom of the base image to the bottom of the layered image. | [optional]
188
+ **left** | **Integer**| Optional; Desired distance in pixels from the left side of the base image to the left side of the layered image. | [optional]
189
+ **right** | **Integer**| Optional; Desired distance in pixels from the right side of the base image to the right side of the layered image. | [optional]
190
+ **width** | **Integer**| Optional; Desired width of the layered image in pixels. Leave height empty or 0 to automatically scale the image proportionally. | [optional]
191
+ **height** | **Integer**| Optional; Desired height of the layered image in pixels. Leave width empty or 0 to automatically scale the image proportionally. | [optional]
192
+
193
+ ### Return type
194
+
195
+ **String**
196
+
197
+ ### Authorization
198
+
199
+ [Apikey](../README.md#Apikey)
200
+
201
+ ### HTTP request headers
202
+
203
+ - **Content-Type**: multipart/form-data
204
+ - **Accept**: application/octet-stream
205
+
206
+
207
+
135
208
  # **edit_contrast_adaptive**
136
209
  > String edit_contrast_adaptive(gamma, image_file)
137
210
 
@@ -189,6 +262,69 @@ Name | Type | Description | Notes
189
262
 
190
263
 
191
264
 
265
+ # **edit_crop_circle**
266
+ > String edit_crop_circle(left, top, radius, image_file)
267
+
268
+ Crop an image to an circular area
269
+
270
+ Crop an image to a target circular area
271
+
272
+ ### Example
273
+ ```ruby
274
+ # load the gem
275
+ require 'cloudmersive-image-recognition-api-client'
276
+ # setup authorization
277
+ CloudmersiveImageRecognitionApiClient.configure do |config|
278
+ # Configure API key authorization: Apikey
279
+ config.api_key['Apikey'] = 'YOUR API KEY'
280
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
281
+ #config.api_key_prefix['Apikey'] = 'Bearer'
282
+ end
283
+
284
+ api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
285
+
286
+ left = 56 # Integer | The left edge of the circular crop area in pixels (X).
287
+
288
+ top = 56 # Integer | The top edge of the circular crop area in pixels (Y).
289
+
290
+ radius = 56 # Integer | The radius of the circular crop area in pixels.
291
+
292
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
293
+
294
+
295
+ begin
296
+ #Crop an image to an circular area
297
+ result = api_instance.edit_crop_circle(left, top, radius, image_file)
298
+ p result
299
+ rescue CloudmersiveImageRecognitionApiClient::ApiError => e
300
+ puts "Exception when calling EditApi->edit_crop_circle: #{e}"
301
+ end
302
+ ```
303
+
304
+ ### Parameters
305
+
306
+ Name | Type | Description | Notes
307
+ ------------- | ------------- | ------------- | -------------
308
+ **left** | **Integer**| The left edge of the circular crop area in pixels (X). |
309
+ **top** | **Integer**| The top edge of the circular crop area in pixels (Y). |
310
+ **radius** | **Integer**| The radius of the circular crop area in pixels. |
311
+ **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
312
+
313
+ ### Return type
314
+
315
+ **String**
316
+
317
+ ### Authorization
318
+
319
+ [Apikey](../README.md#Apikey)
320
+
321
+ ### HTTP request headers
322
+
323
+ - **Content-Type**: multipart/form-data
324
+ - **Accept**: application/octet-stream
325
+
326
+
327
+
192
328
  # **edit_crop_rectangle**
193
329
  > String edit_crop_rectangle(left, top, width, height, image_file)
194
330
 
@@ -142,6 +142,86 @@ module CloudmersiveImageRecognitionApiClient
142
142
  end
143
143
  return data, status_code, headers
144
144
  end
145
+ # Composite two images together precisely
146
+ # Composites two input images together; a layered image onto a base image. Position is based on distance in pixels from each side. 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. Providing multiple parameters in a single axis (for example top and bottom) is not recommended, since only one of the parameters will be used per axis.
147
+ # @param base_image Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
148
+ # @param layered_image Image to layer on top of the base image.
149
+ # @param [Hash] opts the optional parameters
150
+ # @option opts [Integer] :top Optional; Desired distance in pixels from the top of the base image to the top of the layered image.
151
+ # @option opts [Integer] :bottom Optional; Desired distance in pixels from the bottom of the base image to the bottom of the layered image.
152
+ # @option opts [Integer] :left Optional; Desired distance in pixels from the left side of the base image to the left side of the layered image.
153
+ # @option opts [Integer] :right Optional; Desired distance in pixels from the right side of the base image to the right side of the layered image.
154
+ # @option opts [Integer] :width Optional; Desired width of the layered image in pixels. Leave height empty or 0 to automatically scale the image proportionally.
155
+ # @option opts [Integer] :height Optional; Desired height of the layered image in pixels. Leave width empty or 0 to automatically scale the image proportionally.
156
+ # @return [String]
157
+ def edit_composite_precise(base_image, layered_image, opts = {})
158
+ data, _status_code, _headers = edit_composite_precise_with_http_info(base_image, layered_image, opts)
159
+ data
160
+ end
161
+
162
+ # Composite two images together precisely
163
+ # Composites two input images together; a layered image onto a base image. Position is based on distance in pixels from each side. 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. Providing multiple parameters in a single axis (for example top and bottom) is not recommended, since only one of the parameters will be used per axis.
164
+ # @param base_image Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
165
+ # @param layered_image Image to layer on top of the base image.
166
+ # @param [Hash] opts the optional parameters
167
+ # @option opts [Integer] :top Optional; Desired distance in pixels from the top of the base image to the top of the layered image.
168
+ # @option opts [Integer] :bottom Optional; Desired distance in pixels from the bottom of the base image to the bottom of the layered image.
169
+ # @option opts [Integer] :left Optional; Desired distance in pixels from the left side of the base image to the left side of the layered image.
170
+ # @option opts [Integer] :right Optional; Desired distance in pixels from the right side of the base image to the right side of the layered image.
171
+ # @option opts [Integer] :width Optional; Desired width of the layered image in pixels. Leave height empty or 0 to automatically scale the image proportionally.
172
+ # @option opts [Integer] :height Optional; Desired height of the layered image in pixels. Leave width empty or 0 to automatically scale the image proportionally.
173
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
174
+ def edit_composite_precise_with_http_info(base_image, layered_image, opts = {})
175
+ if @api_client.config.debugging
176
+ @api_client.config.logger.debug 'Calling API: EditApi.edit_composite_precise ...'
177
+ end
178
+ # verify the required parameter 'base_image' is set
179
+ if @api_client.config.client_side_validation && base_image.nil?
180
+ fail ArgumentError, "Missing the required parameter 'base_image' when calling EditApi.edit_composite_precise"
181
+ end
182
+ # verify the required parameter 'layered_image' is set
183
+ if @api_client.config.client_side_validation && layered_image.nil?
184
+ fail ArgumentError, "Missing the required parameter 'layered_image' when calling EditApi.edit_composite_precise"
185
+ end
186
+ # resource path
187
+ local_var_path = '/image/edit/composite/precise'
188
+
189
+ # query parameters
190
+ query_params = {}
191
+
192
+ # header parameters
193
+ header_params = {}
194
+ # HTTP header 'Accept' (if needed)
195
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
196
+ # HTTP header 'Content-Type'
197
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
198
+ header_params[:'top'] = opts[:'top'] if !opts[:'top'].nil?
199
+ header_params[:'bottom'] = opts[:'bottom'] if !opts[:'bottom'].nil?
200
+ header_params[:'left'] = opts[:'left'] if !opts[:'left'].nil?
201
+ header_params[:'right'] = opts[:'right'] if !opts[:'right'].nil?
202
+ header_params[:'width'] = opts[:'width'] if !opts[:'width'].nil?
203
+ header_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
204
+
205
+ # form parameters
206
+ form_params = {}
207
+ form_params['baseImage'] = base_image
208
+ form_params['layeredImage'] = layered_image
209
+
210
+ # http body (model)
211
+ post_body = nil
212
+ auth_names = ['Apikey']
213
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
214
+ :header_params => header_params,
215
+ :query_params => query_params,
216
+ :form_params => form_params,
217
+ :body => post_body,
218
+ :auth_names => auth_names,
219
+ :return_type => 'String')
220
+ if @api_client.config.debugging
221
+ @api_client.config.logger.debug "API called: EditApi#edit_composite_precise\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
222
+ end
223
+ return data, status_code, headers
224
+ end
145
225
  # Adaptively adjust the contrast of the image to be more appealing and easy to see
146
226
  # 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.
147
227
  # @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.
@@ -203,6 +283,79 @@ module CloudmersiveImageRecognitionApiClient
203
283
  end
204
284
  return data, status_code, headers
205
285
  end
286
+ # Crop an image to an circular area
287
+ # Crop an image to a target circular area
288
+ # @param left The left edge of the circular crop area in pixels (X).
289
+ # @param top The top edge of the circular crop area in pixels (Y).
290
+ # @param radius The radius of the circular crop area in pixels.
291
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
292
+ # @param [Hash] opts the optional parameters
293
+ # @return [String]
294
+ def edit_crop_circle(left, top, radius, image_file, opts = {})
295
+ data, _status_code, _headers = edit_crop_circle_with_http_info(left, top, radius, image_file, opts)
296
+ data
297
+ end
298
+
299
+ # Crop an image to an circular area
300
+ # Crop an image to a target circular area
301
+ # @param left The left edge of the circular crop area in pixels (X).
302
+ # @param top The top edge of the circular crop area in pixels (Y).
303
+ # @param radius The radius of the circular crop area in pixels.
304
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
305
+ # @param [Hash] opts the optional parameters
306
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
307
+ def edit_crop_circle_with_http_info(left, top, radius, image_file, opts = {})
308
+ if @api_client.config.debugging
309
+ @api_client.config.logger.debug 'Calling API: EditApi.edit_crop_circle ...'
310
+ end
311
+ # verify the required parameter 'left' is set
312
+ if @api_client.config.client_side_validation && left.nil?
313
+ fail ArgumentError, "Missing the required parameter 'left' when calling EditApi.edit_crop_circle"
314
+ end
315
+ # verify the required parameter 'top' is set
316
+ if @api_client.config.client_side_validation && top.nil?
317
+ fail ArgumentError, "Missing the required parameter 'top' when calling EditApi.edit_crop_circle"
318
+ end
319
+ # verify the required parameter 'radius' is set
320
+ if @api_client.config.client_side_validation && radius.nil?
321
+ fail ArgumentError, "Missing the required parameter 'radius' when calling EditApi.edit_crop_circle"
322
+ end
323
+ # verify the required parameter 'image_file' is set
324
+ if @api_client.config.client_side_validation && image_file.nil?
325
+ fail ArgumentError, "Missing the required parameter 'image_file' when calling EditApi.edit_crop_circle"
326
+ end
327
+ # resource path
328
+ local_var_path = '/image/edit/crop/circle/{left}/{top}/{radius}'.sub('{' + 'left' + '}', left.to_s).sub('{' + 'top' + '}', top.to_s).sub('{' + 'radius' + '}', radius.to_s)
329
+
330
+ # query parameters
331
+ query_params = {}
332
+
333
+ # header parameters
334
+ header_params = {}
335
+ # HTTP header 'Accept' (if needed)
336
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
337
+ # HTTP header 'Content-Type'
338
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
339
+
340
+ # form parameters
341
+ form_params = {}
342
+ form_params['imageFile'] = image_file
343
+
344
+ # http body (model)
345
+ post_body = nil
346
+ auth_names = ['Apikey']
347
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
348
+ :header_params => header_params,
349
+ :query_params => query_params,
350
+ :form_params => form_params,
351
+ :body => post_body,
352
+ :auth_names => auth_names,
353
+ :return_type => 'String')
354
+ if @api_client.config.debugging
355
+ @api_client.config.logger.debug "API called: EditApi#edit_crop_circle\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
356
+ end
357
+ return data, status_code, headers
358
+ end
206
359
  # Crop an image to a rectangular area
207
360
  # Crop an image to a target rectangular area
208
361
  # @param left The left edge of the rectangular crop area in pixels (X).
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.14
11
11
  =end
12
12
 
13
13
  module CloudmersiveImageRecognitionApiClient
14
- VERSION = '2.0.2'
14
+ VERSION = '2.0.3'
15
15
  end
@@ -58,6 +58,25 @@ describe 'EditApi' do
58
58
  end
59
59
  end
60
60
 
61
+ # unit tests for edit_composite_precise
62
+ # Composite two images together precisely
63
+ # Composites two input images together; a layered image onto a base image. Position is based on distance in pixels from each side. 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. Providing multiple parameters in a single axis (for example top and bottom) is not recommended, since only one of the parameters will be used per axis.
64
+ # @param base_image Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
65
+ # @param layered_image Image to layer on top of the base image.
66
+ # @param [Hash] opts the optional parameters
67
+ # @option opts [Integer] :top Optional; Desired distance in pixels from the top of the base image to the top of the layered image.
68
+ # @option opts [Integer] :bottom Optional; Desired distance in pixels from the bottom of the base image to the bottom of the layered image.
69
+ # @option opts [Integer] :left Optional; Desired distance in pixels from the left side of the base image to the left side of the layered image.
70
+ # @option opts [Integer] :right Optional; Desired distance in pixels from the right side of the base image to the right side of the layered image.
71
+ # @option opts [Integer] :width Optional; Desired width of the layered image in pixels. Leave height empty or 0 to automatically scale the image proportionally.
72
+ # @option opts [Integer] :height Optional; Desired height of the layered image in pixels. Leave width empty or 0 to automatically scale the image proportionally.
73
+ # @return [String]
74
+ describe 'edit_composite_precise test' do
75
+ it 'should work' do
76
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
77
+ end
78
+ end
79
+
61
80
  # unit tests for edit_contrast_adaptive
62
81
  # Adaptively adjust the contrast of the image to be more appealing and easy to see
63
82
  # 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.
@@ -71,6 +90,21 @@ describe 'EditApi' do
71
90
  end
72
91
  end
73
92
 
93
+ # unit tests for edit_crop_circle
94
+ # Crop an image to an circular area
95
+ # Crop an image to a target circular area
96
+ # @param left The left edge of the circular crop area in pixels (X).
97
+ # @param top The top edge of the circular crop area in pixels (Y).
98
+ # @param radius The radius of the circular crop area in pixels.
99
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
100
+ # @param [Hash] opts the optional parameters
101
+ # @return [String]
102
+ describe 'edit_crop_circle test' do
103
+ it 'should work' do
104
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
105
+ end
106
+ end
107
+
74
108
  # unit tests for edit_crop_rectangle
75
109
  # Crop an image to a rectangular area
76
110
  # Crop an image to a target rectangular area
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudmersive-image-recognition-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cloudmersive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-03 00:00:00.000000000 Z
11
+ date: 2020-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus