cloudmersive-image-recognition-api-client 1.4.3 → 1.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41fa09c88a0473f34c19bfd641997b7dbc9d7f288556a536bd3f8c5deda45abf
4
- data.tar.gz: 60cd2b802ce66a05bf65e9004fac43c2f3e9740cdf1e75e1ab1b0e4a87219689
3
+ metadata.gz: b8c62bd4a59e2811d2a064f1c157bd1eeabf69517b2f74828a37c430e167d5b5
4
+ data.tar.gz: 81a32ecb933c7ef55ea65fa906f017885ed9462eef988b50815bdd06c34eca17
5
5
  SHA512:
6
- metadata.gz: d4fb99faff2684c7d9876fe4e6b5560f339a0c1dfc36ed9f2209fba3be293f1e45cf3886802c7698ac27c3f99dd4cd7d97eaf33876ca2fcf88c9339766bec879
7
- data.tar.gz: 83b0f033de76388f589451701e1c09d6e1601d0d895e979f6973d7e81210247a89243baa9911d162dea629e3f080b45c9fcc2248a903eb509abc2b5e6ecf7de1
6
+ metadata.gz: 4f86e6707e094cc9d50549887ac3a99edf7f0a88e0db9351653511415cd468e5ba5a70b9d332fac9a067c6bfbf411e91607a16de803c9d73e35ad3770d87cd59
7
+ data.tar.gz: 10ec8539e812d38bbf771319994b5ac94a4c33d2fb575df786e6a4335d7021256c423704db0cc919756506051541e95a0c3fc487bec53c3c1f07ab3f5346360d
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: 1.4.3
10
+ - Package version: 1.4.4
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-1.4.3.gem
26
+ gem install ./cloudmersive-image-recognition-api-client-1.4.4.gem
27
27
  ```
28
- (for development, run `gem install --dev ./cloudmersive-image-recognition-api-client-1.4.3.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./cloudmersive-image-recognition-api-client-1.4.4.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', '~> 1.4.3'
34
+ gem 'cloudmersive-image-recognition-api-client', '~> 1.4.4'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -101,6 +101,7 @@ Class | Method | HTTP request | Description
101
101
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_draw_rectangle**](docs/EditApi.md#edit_draw_rectangle) | **POST** /image/edit/draw/rectangle | Draw a rectangle onto an image
102
102
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_draw_text**](docs/EditApi.md#edit_draw_text) | **POST** /image/edit/draw/text | Draw text onto an image
103
103
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_drop_shadow**](docs/EditApi.md#edit_drop_shadow) | **POST** /image/edit/drop-shadow/{X}/{Y}/{sigma}/{opacity} | Add a customizeable drop shadow to an image
104
+ *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_remove_transparency**](docs/EditApi.md#edit_remove_transparency) | **POST** /image/edit/remove-transparency | Remove transparency from the image
104
105
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_rotate**](docs/EditApi.md#edit_rotate) | **POST** /image/edit/rotate/{degrees}/angle | Rotate an image any number of degrees
105
106
  *CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_compare**](docs/FaceApi.md#face_compare) | **POST** /image/face/compare-and-match | Compare and match faces
106
107
  *CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_crop_first**](docs/FaceApi.md#face_crop_first) | **POST** /image/face/crop/first | Crop image to face (square)
data/docs/EditApi.md CHANGED
@@ -12,6 +12,7 @@ Method | HTTP request | Description
12
12
  [**edit_draw_rectangle**](EditApi.md#edit_draw_rectangle) | **POST** /image/edit/draw/rectangle | Draw a rectangle onto an image
13
13
  [**edit_draw_text**](EditApi.md#edit_draw_text) | **POST** /image/edit/draw/text | Draw text onto an image
14
14
  [**edit_drop_shadow**](EditApi.md#edit_drop_shadow) | **POST** /image/edit/drop-shadow/{X}/{Y}/{sigma}/{opacity} | Add a customizeable drop shadow to an image
15
+ [**edit_remove_transparency**](EditApi.md#edit_remove_transparency) | **POST** /image/edit/remove-transparency | Remove transparency from the image
15
16
  [**edit_rotate**](EditApi.md#edit_rotate) | **POST** /image/edit/rotate/{degrees}/angle | Rotate an image any number of degrees
16
17
 
17
18
 
@@ -480,6 +481,60 @@ Name | Type | Description | Notes
480
481
 
481
482
 
482
483
 
484
+ # **edit_remove_transparency**
485
+ > String edit_remove_transparency(image_file)
486
+
487
+ Remove transparency from the image
488
+
489
+ 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.
490
+
491
+ ### Example
492
+ ```ruby
493
+ # load the gem
494
+ require 'cloudmersive-image-recognition-api-client'
495
+ # setup authorization
496
+ CloudmersiveImageRecognitionApiClient.configure do |config|
497
+ # Configure API key authorization: Apikey
498
+ config.api_key['Apikey'] = 'YOUR API KEY'
499
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
500
+ #config.api_key_prefix['Apikey'] = 'Bearer'
501
+ end
502
+
503
+ api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
504
+
505
+ 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.
506
+
507
+
508
+ begin
509
+ #Remove transparency from the image
510
+ result = api_instance.edit_remove_transparency(image_file)
511
+ p result
512
+ rescue CloudmersiveImageRecognitionApiClient::ApiError => e
513
+ puts "Exception when calling EditApi->edit_remove_transparency: #{e}"
514
+ end
515
+ ```
516
+
517
+ ### Parameters
518
+
519
+ Name | Type | Description | Notes
520
+ ------------- | ------------- | ------------- | -------------
521
+ **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
522
+
523
+ ### Return type
524
+
525
+ **String**
526
+
527
+ ### Authorization
528
+
529
+ [Apikey](../README.md#Apikey)
530
+
531
+ ### HTTP request headers
532
+
533
+ - **Content-Type**: multipart/form-data
534
+ - **Accept**: application/octet-stream
535
+
536
+
537
+
483
538
  # **edit_rotate**
484
539
  > String edit_rotate(degrees, image_file)
485
540
 
@@ -532,6 +532,62 @@ module CloudmersiveImageRecognitionApiClient
532
532
  return data, status_code, headers
533
533
  end
534
534
 
535
+ # Remove transparency from the image
536
+ # 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.
537
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
538
+ # @param [Hash] opts the optional parameters
539
+ # @return [String]
540
+ def edit_remove_transparency(image_file, opts = {})
541
+ data, _status_code, _headers = edit_remove_transparency_with_http_info(image_file, opts)
542
+ return data
543
+ end
544
+
545
+ # Remove transparency from the image
546
+ # 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.
547
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
548
+ # @param [Hash] opts the optional parameters
549
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
550
+ def edit_remove_transparency_with_http_info(image_file, opts = {})
551
+ if @api_client.config.debugging
552
+ @api_client.config.logger.debug "Calling API: EditApi.edit_remove_transparency ..."
553
+ end
554
+ # verify the required parameter 'image_file' is set
555
+ if @api_client.config.client_side_validation && image_file.nil?
556
+ fail ArgumentError, "Missing the required parameter 'image_file' when calling EditApi.edit_remove_transparency"
557
+ end
558
+ # resource path
559
+ local_var_path = "/image/edit/remove-transparency"
560
+
561
+ # query parameters
562
+ query_params = {}
563
+
564
+ # header parameters
565
+ header_params = {}
566
+ # HTTP header 'Accept' (if needed)
567
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
568
+ # HTTP header 'Content-Type'
569
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
570
+
571
+ # form parameters
572
+ form_params = {}
573
+ form_params["imageFile"] = image_file
574
+
575
+ # http body (model)
576
+ post_body = nil
577
+ auth_names = ['Apikey']
578
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
579
+ :header_params => header_params,
580
+ :query_params => query_params,
581
+ :form_params => form_params,
582
+ :body => post_body,
583
+ :auth_names => auth_names,
584
+ :return_type => 'String')
585
+ if @api_client.config.debugging
586
+ @api_client.config.logger.debug "API called: EditApi#edit_remove_transparency\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
587
+ end
588
+ return data, status_code, headers
589
+ end
590
+
535
591
  # Rotate an image any number of degrees
536
592
  # Rotates an image by an arbitrary number of degrees
537
593
  # @param degrees Degrees to rotate the image; values range from 0.0 to 360.0.
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.3.1
11
11
  =end
12
12
 
13
13
  module CloudmersiveImageRecognitionApiClient
14
- VERSION = "1.4.3"
14
+ VERSION = "1.4.4"
15
15
  end
@@ -139,6 +139,18 @@ describe 'EditApi' do
139
139
  end
140
140
  end
141
141
 
142
+ # unit tests for edit_remove_transparency
143
+ # Remove transparency from the image
144
+ # 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.
145
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
146
+ # @param [Hash] opts the optional parameters
147
+ # @return [String]
148
+ describe 'edit_remove_transparency test' do
149
+ it "should work" do
150
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
151
+ end
152
+ end
153
+
142
154
  # unit tests for edit_rotate
143
155
  # Rotate an image any number of degrees
144
156
  # Rotates an image by an arbitrary number of degrees
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: 1.4.3
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cloudmersive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-25 00:00:00.000000000 Z
11
+ date: 2019-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus