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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c0360e6e05c3b0449baf31e4ddae2b046e4924b40bd6a622e5e976abdb4b231
|
4
|
+
data.tar.gz: 843cc9f496d640233011dac1c4c98f7e695fb113ffc80c777c71faee679bd691
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ac97466d431755f933c4fe2993d960feb3aa3f6b59fe8ce93a433505041b3d6a2a044248dac10ce7c8575b744f6ec3be7c4a260772c04672aec313c2c743c66
|
7
|
+
data.tar.gz: 43d218eafcc9c261a61244f3fd4e38f92e88fa098181e6f47ce284cbc981261d43f2e7f318228d37cc3b1aac0130d8396a3d4923a412dd96a653283fb512c68b
|
data/Gemfile
CHANGED
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:
|
10
|
+
- Package version: 2.0.2
|
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-
|
26
|
+
gem install ./cloudmersive-image-recognition-api-client-2.0.2.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./cloudmersive-image-recognition-api-client-
|
28
|
+
(for development, run `gem install --dev ./cloudmersive-image-recognition-api-client-2.0.2.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', '~>
|
34
|
+
gem 'cloudmersive-image-recognition-api-client', '~> 2.0.2'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
@@ -64,9 +64,9 @@ end
|
|
64
64
|
|
65
65
|
api_instance = CloudmersiveImageRecognitionApiClient::ArtisticApi.new
|
66
66
|
|
67
|
-
style =
|
67
|
+
style = 'style_example' # String | The style of the painting to apply. To start, try \"udnie\" a painting style. Possible values are: \"udnie\", \"wave\", \"la_muse\", \"rain_princess\".
|
68
68
|
|
69
|
-
image_file = File.new(
|
69
|
+
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.
|
70
70
|
|
71
71
|
|
72
72
|
begin
|
@@ -88,7 +88,7 @@ Class | Method | HTTP request | Description
|
|
88
88
|
*CloudmersiveImageRecognitionApiClient::ArtisticApi* | [**artistic_painting**](docs/ArtisticApi.md#artistic_painting) | **POST** /image/artistic/painting/{style} | Transform an image into an artistic painting automatically
|
89
89
|
*CloudmersiveImageRecognitionApiClient::ConvertApi* | [**convert_to_bmp**](docs/ConvertApi.md#convert_to_bmp) | **POST** /image/convert/to/bmp | Convert input image to Bitmap BMP format
|
90
90
|
*CloudmersiveImageRecognitionApiClient::ConvertApi* | [**convert_to_gif**](docs/ConvertApi.md#convert_to_gif) | **POST** /image/convert/to/gif | Convert input image to GIF format
|
91
|
-
*CloudmersiveImageRecognitionApiClient::ConvertApi* | [**convert_to_jpg**](docs/ConvertApi.md#convert_to_jpg) | **POST** /image/convert/to/jpg/{quality} | Convert input image to JPG
|
91
|
+
*CloudmersiveImageRecognitionApiClient::ConvertApi* | [**convert_to_jpg**](docs/ConvertApi.md#convert_to_jpg) | **POST** /image/convert/to/jpg/{quality} | Convert input image to JPG, JPEG format
|
92
92
|
*CloudmersiveImageRecognitionApiClient::ConvertApi* | [**convert_to_photoshop**](docs/ConvertApi.md#convert_to_photoshop) | **POST** /image/convert/to/psd | Convert input image to Photoshop PSD format
|
93
93
|
*CloudmersiveImageRecognitionApiClient::ConvertApi* | [**convert_to_png**](docs/ConvertApi.md#convert_to_png) | **POST** /image/convert/to/png | Convert input image to PNG format
|
94
94
|
*CloudmersiveImageRecognitionApiClient::ConvertApi* | [**convert_to_tiff**](docs/ConvertApi.md#convert_to_tiff) | **POST** /image/convert/to/tiff | Convert input image to TIFF format
|
@@ -101,16 +101,19 @@ 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_invert**](docs/EditApi.md#edit_invert) | **POST** /image/edit/invert | Invert, negate the colors in the image
|
105
|
+
*CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_remove_exif_data**](docs/EditApi.md#edit_remove_exif_data) | **POST** /image/edit/remove-exif | Remove EXIF data from the image
|
106
|
+
*CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_remove_transparency**](docs/EditApi.md#edit_remove_transparency) | **POST** /image/edit/remove-transparency | Remove transparency from the image
|
104
107
|
*CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_rotate**](docs/EditApi.md#edit_rotate) | **POST** /image/edit/rotate/{degrees}/angle | Rotate an image any number of degrees
|
105
108
|
*CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_compare**](docs/FaceApi.md#face_compare) | **POST** /image/face/compare-and-match | Compare and match faces
|
106
|
-
*CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_crop_first**](docs/FaceApi.md#face_crop_first) | **POST** /image/face/crop/first | Crop image to face
|
107
|
-
*CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_crop_first_round**](docs/FaceApi.md#face_crop_first_round) | **POST** /image/face/crop/first/round | Crop image to face
|
109
|
+
*CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_crop_first**](docs/FaceApi.md#face_crop_first) | **POST** /image/face/crop/first | Crop image to face with square crop
|
110
|
+
*CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_crop_first_round**](docs/FaceApi.md#face_crop_first_round) | **POST** /image/face/crop/first/round | Crop image to face with round crop
|
108
111
|
*CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_detect_age**](docs/FaceApi.md#face_detect_age) | **POST** /image/face/detect-age | Detect the age of people in an image
|
109
112
|
*CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_detect_gender**](docs/FaceApi.md#face_detect_gender) | **POST** /image/face/detect-gender | Detect the gender of people in an image
|
110
|
-
*CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_locate**](docs/FaceApi.md#face_locate) | **POST** /image/face/locate |
|
111
|
-
*CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_locate_with_landmarks**](docs/FaceApi.md#face_locate_with_landmarks) | **POST** /image/face/locate-with-landmarks |
|
113
|
+
*CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_locate**](docs/FaceApi.md#face_locate) | **POST** /image/face/locate | Detect and find faces in an image
|
114
|
+
*CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_locate_with_landmarks**](docs/FaceApi.md#face_locate_with_landmarks) | **POST** /image/face/locate-with-landmarks | Detect and find faces and landmarks eyes and nose and mouth in image
|
112
115
|
*CloudmersiveImageRecognitionApiClient::FilterApi* | [**filter_black_and_white**](docs/FilterApi.md#filter_black_and_white) | **POST** /image/filter/black-and-white | Convert image to black-and-white grayscale
|
113
|
-
*CloudmersiveImageRecognitionApiClient::FilterApi* | [**filter_despeckle**](docs/FilterApi.md#filter_despeckle) | **POST** /image/filter/despeckle | Despeckle
|
116
|
+
*CloudmersiveImageRecognitionApiClient::FilterApi* | [**filter_despeckle**](docs/FilterApi.md#filter_despeckle) | **POST** /image/filter/despeckle | Despeckle to remove point noise from the image
|
114
117
|
*CloudmersiveImageRecognitionApiClient::FilterApi* | [**filter_edge_detect**](docs/FilterApi.md#filter_edge_detect) | **POST** /image/filter/edge-detect/{radius} | Detect and highlight edges in an image
|
115
118
|
*CloudmersiveImageRecognitionApiClient::FilterApi* | [**filter_emboss**](docs/FilterApi.md#filter_emboss) | **POST** /image/filter/emboss/{radius}/{sigma} | Emboss an image
|
116
119
|
*CloudmersiveImageRecognitionApiClient::FilterApi* | [**filter_gaussian_blur**](docs/FilterApi.md#filter_gaussian_blur) | **POST** /image/filter/blur/guassian/{radius}/{sigma} | Perform a guassian blur on the input image
|
@@ -118,12 +121,12 @@ Class | Method | HTTP request | Description
|
|
118
121
|
*CloudmersiveImageRecognitionApiClient::FilterApi* | [**filter_posterize**](docs/FilterApi.md#filter_posterize) | **POST** /image/filter/posterize | Posterize the image by reducing distinct colors
|
119
122
|
*CloudmersiveImageRecognitionApiClient::FilterApi* | [**filter_swirl**](docs/FilterApi.md#filter_swirl) | **POST** /image/filter/swirl | Swirl distort the image
|
120
123
|
*CloudmersiveImageRecognitionApiClient::InfoApi* | [**info_get_dominant_color**](docs/InfoApi.md#info_get_dominant_color) | **POST** /image/get-info/dominant-color | Returns the dominant colors of the image
|
121
|
-
*CloudmersiveImageRecognitionApiClient::InfoApi* | [**info_get_metadata**](docs/InfoApi.md#info_get_metadata) | **POST** /image/get-info/metadata | Returns the image metadata
|
122
|
-
*CloudmersiveImageRecognitionApiClient::NsfwApi* | [**nsfw_classify**](docs/NsfwApi.md#nsfw_classify) | **POST** /image/nsfw/classify | Not safe for work
|
124
|
+
*CloudmersiveImageRecognitionApiClient::InfoApi* | [**info_get_metadata**](docs/InfoApi.md#info_get_metadata) | **POST** /image/get-info/metadata | Returns the image metadata including EXIF and resolution
|
125
|
+
*CloudmersiveImageRecognitionApiClient::NsfwApi* | [**nsfw_classify**](docs/NsfwApi.md#nsfw_classify) | **POST** /image/nsfw/classify | Not safe for work NSFW racy content classification
|
123
126
|
*CloudmersiveImageRecognitionApiClient::RecognizeApi* | [**recognize_describe**](docs/RecognizeApi.md#recognize_describe) | **POST** /image/recognize/describe | Describe an image in natural language
|
124
127
|
*CloudmersiveImageRecognitionApiClient::RecognizeApi* | [**recognize_detect_and_unskew_document**](docs/RecognizeApi.md#recognize_detect_and_unskew_document) | **POST** /image/recognize/detect-document/unskew | Detect and unskew a photo of a document
|
125
|
-
*CloudmersiveImageRecognitionApiClient::RecognizeApi* | [**recognize_detect_objects**](docs/RecognizeApi.md#recognize_detect_objects) | **POST** /image/recognize/detect-objects | Detect objects
|
126
|
-
*CloudmersiveImageRecognitionApiClient::RecognizeApi* | [**recognize_detect_people**](docs/RecognizeApi.md#recognize_detect_people) | **POST** /image/recognize/detect-people | Detect people
|
128
|
+
*CloudmersiveImageRecognitionApiClient::RecognizeApi* | [**recognize_detect_objects**](docs/RecognizeApi.md#recognize_detect_objects) | **POST** /image/recognize/detect-objects | Detect objects including types and locations in an image
|
129
|
+
*CloudmersiveImageRecognitionApiClient::RecognizeApi* | [**recognize_detect_people**](docs/RecognizeApi.md#recognize_detect_people) | **POST** /image/recognize/detect-people | Detect people including locations in an image
|
127
130
|
*CloudmersiveImageRecognitionApiClient::RecognizeApi* | [**recognize_detect_text_fine**](docs/RecognizeApi.md#recognize_detect_text_fine) | **POST** /image/recognize/detect-text/fine | Detect fine text in a photo of a document
|
128
131
|
*CloudmersiveImageRecognitionApiClient::RecognizeApi* | [**recognize_detect_text_large**](docs/RecognizeApi.md#recognize_detect_text_large) | **POST** /image/recognize/detect-text/large | Detect large text in a photo
|
129
132
|
*CloudmersiveImageRecognitionApiClient::RecognizeApi* | [**recognize_detect_vehicle_license_plates**](docs/RecognizeApi.md#recognize_detect_vehicle_license_plates) | **POST** /image/recognize/detect-vehicle-license-plates | Detect vehicle license plates in an image
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
|
2
|
+
|
3
3
|
=begin
|
4
4
|
#imageapi
|
5
5
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
OpenAPI spec version: v1
|
9
9
|
|
10
10
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
-
Swagger Codegen version: 2.
|
11
|
+
Swagger Codegen version: 2.4.14
|
12
12
|
|
13
13
|
=end
|
14
14
|
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.homepage = "https://www.cloudmersive.com/image-recognition-and-processing-api"
|
25
25
|
s.summary = "Advanced Machine Learning APIs for recognizing and processing images."
|
26
26
|
s.description = "Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, including automatic caption generation, face recognition and NSFW classification, and also perform useful image modification operations."
|
27
|
-
s.license =
|
27
|
+
s.license = 'Apache 2.0'
|
28
28
|
s.required_ruby_version = ">= 1.9"
|
29
29
|
|
30
30
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
data/docs/ArtisticApi.md
CHANGED
@@ -28,9 +28,9 @@ end
|
|
28
28
|
|
29
29
|
api_instance = CloudmersiveImageRecognitionApiClient::ArtisticApi.new
|
30
30
|
|
31
|
-
style =
|
31
|
+
style = 'style_example' # String | The style of the painting to apply. To start, try \"udnie\" a painting style. Possible values are: \"udnie\", \"wave\", \"la_muse\", \"rain_princess\".
|
32
32
|
|
33
|
-
image_file = File.new(
|
33
|
+
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.
|
34
34
|
|
35
35
|
|
36
36
|
begin
|
data/docs/ConvertApi.md
CHANGED
@@ -6,7 +6,7 @@ Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**convert_to_bmp**](ConvertApi.md#convert_to_bmp) | **POST** /image/convert/to/bmp | Convert input image to Bitmap BMP format
|
8
8
|
[**convert_to_gif**](ConvertApi.md#convert_to_gif) | **POST** /image/convert/to/gif | Convert input image to GIF format
|
9
|
-
[**convert_to_jpg**](ConvertApi.md#convert_to_jpg) | **POST** /image/convert/to/jpg/{quality} | Convert input image to JPG
|
9
|
+
[**convert_to_jpg**](ConvertApi.md#convert_to_jpg) | **POST** /image/convert/to/jpg/{quality} | Convert input image to JPG, JPEG format
|
10
10
|
[**convert_to_photoshop**](ConvertApi.md#convert_to_photoshop) | **POST** /image/convert/to/psd | Convert input image to Photoshop PSD format
|
11
11
|
[**convert_to_png**](ConvertApi.md#convert_to_png) | **POST** /image/convert/to/png | Convert input image to PNG format
|
12
12
|
[**convert_to_tiff**](ConvertApi.md#convert_to_tiff) | **POST** /image/convert/to/tiff | Convert input image to TIFF format
|
@@ -34,7 +34,7 @@ end
|
|
34
34
|
|
35
35
|
api_instance = CloudmersiveImageRecognitionApiClient::ConvertApi.new
|
36
36
|
|
37
|
-
image_file = File.new(
|
37
|
+
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.
|
38
38
|
|
39
39
|
|
40
40
|
begin
|
@@ -88,7 +88,7 @@ end
|
|
88
88
|
|
89
89
|
api_instance = CloudmersiveImageRecognitionApiClient::ConvertApi.new
|
90
90
|
|
91
|
-
image_file = File.new(
|
91
|
+
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.
|
92
92
|
|
93
93
|
|
94
94
|
begin
|
@@ -117,14 +117,14 @@ Name | Type | Description | Notes
|
|
117
117
|
### HTTP request headers
|
118
118
|
|
119
119
|
- **Content-Type**: multipart/form-data
|
120
|
-
- **Accept**:
|
120
|
+
- **Accept**: application/octet-stream
|
121
121
|
|
122
122
|
|
123
123
|
|
124
124
|
# **convert_to_jpg**
|
125
125
|
> String convert_to_jpg(quality, image_file)
|
126
126
|
|
127
|
-
Convert input image to JPG
|
127
|
+
Convert input image to JPG, JPEG format
|
128
128
|
|
129
129
|
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.
|
130
130
|
|
@@ -144,11 +144,11 @@ api_instance = CloudmersiveImageRecognitionApiClient::ConvertApi.new
|
|
144
144
|
|
145
145
|
quality = 56 # Integer | Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75
|
146
146
|
|
147
|
-
image_file = File.new(
|
147
|
+
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.
|
148
148
|
|
149
149
|
|
150
150
|
begin
|
151
|
-
#Convert input image to JPG
|
151
|
+
#Convert input image to JPG, JPEG format
|
152
152
|
result = api_instance.convert_to_jpg(quality, image_file)
|
153
153
|
p result
|
154
154
|
rescue CloudmersiveImageRecognitionApiClient::ApiError => e
|
@@ -174,7 +174,7 @@ Name | Type | Description | Notes
|
|
174
174
|
### HTTP request headers
|
175
175
|
|
176
176
|
- **Content-Type**: multipart/form-data
|
177
|
-
- **Accept**:
|
177
|
+
- **Accept**: application/octet-stream
|
178
178
|
|
179
179
|
|
180
180
|
|
@@ -199,7 +199,7 @@ end
|
|
199
199
|
|
200
200
|
api_instance = CloudmersiveImageRecognitionApiClient::ConvertApi.new
|
201
201
|
|
202
|
-
image_file = File.new(
|
202
|
+
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.
|
203
203
|
|
204
204
|
|
205
205
|
begin
|
@@ -253,7 +253,7 @@ end
|
|
253
253
|
|
254
254
|
api_instance = CloudmersiveImageRecognitionApiClient::ConvertApi.new
|
255
255
|
|
256
|
-
image_file = File.new(
|
256
|
+
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.
|
257
257
|
|
258
258
|
|
259
259
|
begin
|
@@ -282,7 +282,7 @@ Name | Type | Description | Notes
|
|
282
282
|
### HTTP request headers
|
283
283
|
|
284
284
|
- **Content-Type**: multipart/form-data
|
285
|
-
- **Accept**:
|
285
|
+
- **Accept**: application/octet-stream
|
286
286
|
|
287
287
|
|
288
288
|
|
@@ -307,7 +307,7 @@ end
|
|
307
307
|
|
308
308
|
api_instance = CloudmersiveImageRecognitionApiClient::ConvertApi.new
|
309
309
|
|
310
|
-
image_file = File.new(
|
310
|
+
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.
|
311
311
|
|
312
312
|
|
313
313
|
begin
|
@@ -361,7 +361,7 @@ end
|
|
361
361
|
|
362
362
|
api_instance = CloudmersiveImageRecognitionApiClient::ConvertApi.new
|
363
363
|
|
364
|
-
image_file = File.new(
|
364
|
+
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.
|
365
365
|
|
366
366
|
|
367
367
|
begin
|
data/docs/DrawTextInstance.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**text** | **String** | Text string to draw | [optional]
|
7
|
-
**font_family_name** | **String** | Font Family to use. Leave blank to default to \"Arial\". | [optional]
|
7
|
+
**font_family_name** | **String** | Font Family to use. Leave blank to default to \"Arial\". Supported fonts including Arial, Calibri, Cambria, Candara, Consolas, Constantia, Corbel, Courier New, Courier Regular, Georgia, Impact Regular, Lucida, Modern Regular, Tahoma, Times New Roman, Verdana | [optional]
|
8
8
|
**font_size** | **Float** | Font size to use. | [optional]
|
9
9
|
**color** | **String** | Color to use - can be a hex value (with #) or HTML common color name | [optional]
|
10
10
|
**x** | **Float** | Pixel location of the left edge of the text location | [optional]
|
data/docs/EditApi.md
CHANGED
@@ -12,6 +12,9 @@ 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_invert**](EditApi.md#edit_invert) | **POST** /image/edit/invert | Invert, negate the colors in the image
|
16
|
+
[**edit_remove_exif_data**](EditApi.md#edit_remove_exif_data) | **POST** /image/edit/remove-exif | Remove EXIF data from the image
|
17
|
+
[**edit_remove_transparency**](EditApi.md#edit_remove_transparency) | **POST** /image/edit/remove-transparency | Remove transparency from the image
|
15
18
|
[**edit_rotate**](EditApi.md#edit_rotate) | **POST** /image/edit/rotate/{degrees}/angle | Rotate an image any number of degrees
|
16
19
|
|
17
20
|
|
@@ -36,7 +39,7 @@ end
|
|
36
39
|
|
37
40
|
api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
|
38
41
|
|
39
|
-
image_file = File.new(
|
42
|
+
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.
|
40
43
|
|
41
44
|
|
42
45
|
begin
|
@@ -90,11 +93,11 @@ end
|
|
90
93
|
|
91
94
|
api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
|
92
95
|
|
93
|
-
location =
|
96
|
+
location = 'location_example' # String | 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\"
|
94
97
|
|
95
|
-
base_image = File.new(
|
98
|
+
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.
|
96
99
|
|
97
|
-
layered_image = File.new(
|
100
|
+
layered_image = File.new('/path/to/file.txt') # File | Image to layer on top of the base image.
|
98
101
|
|
99
102
|
|
100
103
|
begin
|
@@ -125,7 +128,7 @@ Name | Type | Description | Notes
|
|
125
128
|
### HTTP request headers
|
126
129
|
|
127
130
|
- **Content-Type**: multipart/form-data
|
128
|
-
- **Accept**:
|
131
|
+
- **Accept**: application/octet-stream
|
129
132
|
|
130
133
|
|
131
134
|
|
@@ -152,7 +155,7 @@ api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
|
|
152
155
|
|
153
156
|
gamma = 1.2 # Float | 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.
|
154
157
|
|
155
|
-
image_file = File.new(
|
158
|
+
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.
|
156
159
|
|
157
160
|
|
158
161
|
begin
|
@@ -182,7 +185,7 @@ Name | Type | Description | Notes
|
|
182
185
|
### HTTP request headers
|
183
186
|
|
184
187
|
- **Content-Type**: multipart/form-data
|
185
|
-
- **Accept**:
|
188
|
+
- **Accept**: application/octet-stream
|
186
189
|
|
187
190
|
|
188
191
|
|
@@ -215,7 +218,7 @@ width = 56 # Integer | The width of the rectangular crop area in pixels.
|
|
215
218
|
|
216
219
|
height = 56 # Integer | The height of the rectangular crop area in pixels.
|
217
220
|
|
218
|
-
image_file = File.new(
|
221
|
+
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.
|
219
222
|
|
220
223
|
|
221
224
|
begin
|
@@ -273,7 +276,7 @@ end
|
|
273
276
|
|
274
277
|
api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
|
275
278
|
|
276
|
-
request = CloudmersiveImageRecognitionApiClient::DrawPolygonRequest.new # DrawPolygonRequest |
|
279
|
+
request = CloudmersiveImageRecognitionApiClient::DrawPolygonRequest.new # DrawPolygonRequest | Polygon drawing request parameters
|
277
280
|
|
278
281
|
|
279
282
|
begin
|
@@ -289,7 +292,7 @@ end
|
|
289
292
|
|
290
293
|
Name | Type | Description | Notes
|
291
294
|
------------- | ------------- | ------------- | -------------
|
292
|
-
**request** | [**DrawPolygonRequest**](DrawPolygonRequest.md)|
|
295
|
+
**request** | [**DrawPolygonRequest**](DrawPolygonRequest.md)| Polygon drawing request parameters |
|
293
296
|
|
294
297
|
### Return type
|
295
298
|
|
@@ -302,7 +305,7 @@ Name | Type | Description | Notes
|
|
302
305
|
### HTTP request headers
|
303
306
|
|
304
307
|
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
305
|
-
- **Accept**:
|
308
|
+
- **Accept**: application/octet-stream
|
306
309
|
|
307
310
|
|
308
311
|
|
@@ -327,7 +330,7 @@ end
|
|
327
330
|
|
328
331
|
api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
|
329
332
|
|
330
|
-
request = CloudmersiveImageRecognitionApiClient::DrawRectangleRequest.new # DrawRectangleRequest |
|
333
|
+
request = CloudmersiveImageRecognitionApiClient::DrawRectangleRequest.new # DrawRectangleRequest | Draw rectangle parameters
|
331
334
|
|
332
335
|
|
333
336
|
begin
|
@@ -343,7 +346,7 @@ end
|
|
343
346
|
|
344
347
|
Name | Type | Description | Notes
|
345
348
|
------------- | ------------- | ------------- | -------------
|
346
|
-
**request** | [**DrawRectangleRequest**](DrawRectangleRequest.md)|
|
349
|
+
**request** | [**DrawRectangleRequest**](DrawRectangleRequest.md)| Draw rectangle parameters |
|
347
350
|
|
348
351
|
### Return type
|
349
352
|
|
@@ -356,7 +359,7 @@ Name | Type | Description | Notes
|
|
356
359
|
### HTTP request headers
|
357
360
|
|
358
361
|
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
359
|
-
- **Accept**:
|
362
|
+
- **Accept**: application/octet-stream
|
360
363
|
|
361
364
|
|
362
365
|
|
@@ -381,7 +384,7 @@ end
|
|
381
384
|
|
382
385
|
api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
|
383
386
|
|
384
|
-
request = CloudmersiveImageRecognitionApiClient::DrawTextRequest.new # DrawTextRequest |
|
387
|
+
request = CloudmersiveImageRecognitionApiClient::DrawTextRequest.new # DrawTextRequest | Draw text parameters
|
385
388
|
|
386
389
|
|
387
390
|
begin
|
@@ -397,7 +400,7 @@ end
|
|
397
400
|
|
398
401
|
Name | Type | Description | Notes
|
399
402
|
------------- | ------------- | ------------- | -------------
|
400
|
-
**request** | [**DrawTextRequest**](DrawTextRequest.md)|
|
403
|
+
**request** | [**DrawTextRequest**](DrawTextRequest.md)| Draw text parameters |
|
401
404
|
|
402
405
|
### Return type
|
403
406
|
|
@@ -410,7 +413,7 @@ Name | Type | Description | Notes
|
|
410
413
|
### HTTP request headers
|
411
414
|
|
412
415
|
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
413
|
-
- **Accept**:
|
416
|
+
- **Accept**: application/octet-stream
|
414
417
|
|
415
418
|
|
416
419
|
|
@@ -435,15 +438,15 @@ end
|
|
435
438
|
|
436
439
|
api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
|
437
440
|
|
438
|
-
x = 56 # Integer |
|
441
|
+
x = 56 # Integer | Horizontal (X) offset of the drop shadow
|
439
442
|
|
440
|
-
y = 56 # Integer |
|
443
|
+
y = 56 # Integer | Vertical (Y) offset of the drop shadow
|
441
444
|
|
442
445
|
sigma = 56 # Integer | Sigma (blur distance) of the drop shadow
|
443
446
|
|
444
447
|
opacity = 56 # Integer | Opacity of the drop shadow; 0 is 0% and 100 is 100%
|
445
448
|
|
446
|
-
image_file = File.new(
|
449
|
+
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.
|
447
450
|
|
448
451
|
|
449
452
|
begin
|
@@ -459,8 +462,8 @@ end
|
|
459
462
|
|
460
463
|
Name | Type | Description | Notes
|
461
464
|
------------- | ------------- | ------------- | -------------
|
462
|
-
**x** | **Integer**|
|
463
|
-
**y** | **Integer**|
|
465
|
+
**x** | **Integer**| Horizontal (X) offset of the drop shadow |
|
466
|
+
**y** | **Integer**| Vertical (Y) offset of the drop shadow |
|
464
467
|
**sigma** | **Integer**| Sigma (blur distance) of the drop shadow |
|
465
468
|
**opacity** | **Integer**| Opacity of the drop shadow; 0 is 0% and 100 is 100% |
|
466
469
|
**image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
|
@@ -480,6 +483,168 @@ Name | Type | Description | Notes
|
|
480
483
|
|
481
484
|
|
482
485
|
|
486
|
+
# **edit_invert**
|
487
|
+
> String edit_invert(image_file)
|
488
|
+
|
489
|
+
Invert, negate the colors in the image
|
490
|
+
|
491
|
+
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.
|
492
|
+
|
493
|
+
### Example
|
494
|
+
```ruby
|
495
|
+
# load the gem
|
496
|
+
require 'cloudmersive-image-recognition-api-client'
|
497
|
+
# setup authorization
|
498
|
+
CloudmersiveImageRecognitionApiClient.configure do |config|
|
499
|
+
# Configure API key authorization: Apikey
|
500
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
501
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
502
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
503
|
+
end
|
504
|
+
|
505
|
+
api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
|
506
|
+
|
507
|
+
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.
|
508
|
+
|
509
|
+
|
510
|
+
begin
|
511
|
+
#Invert, negate the colors in the image
|
512
|
+
result = api_instance.edit_invert(image_file)
|
513
|
+
p result
|
514
|
+
rescue CloudmersiveImageRecognitionApiClient::ApiError => e
|
515
|
+
puts "Exception when calling EditApi->edit_invert: #{e}"
|
516
|
+
end
|
517
|
+
```
|
518
|
+
|
519
|
+
### Parameters
|
520
|
+
|
521
|
+
Name | Type | Description | Notes
|
522
|
+
------------- | ------------- | ------------- | -------------
|
523
|
+
**image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
|
524
|
+
|
525
|
+
### Return type
|
526
|
+
|
527
|
+
**String**
|
528
|
+
|
529
|
+
### Authorization
|
530
|
+
|
531
|
+
[Apikey](../README.md#Apikey)
|
532
|
+
|
533
|
+
### HTTP request headers
|
534
|
+
|
535
|
+
- **Content-Type**: multipart/form-data
|
536
|
+
- **Accept**: application/octet-stream
|
537
|
+
|
538
|
+
|
539
|
+
|
540
|
+
# **edit_remove_exif_data**
|
541
|
+
> String edit_remove_exif_data(image_file)
|
542
|
+
|
543
|
+
Remove EXIF data from the image
|
544
|
+
|
545
|
+
Removes any EXIF data and profiles .
|
546
|
+
|
547
|
+
### Example
|
548
|
+
```ruby
|
549
|
+
# load the gem
|
550
|
+
require 'cloudmersive-image-recognition-api-client'
|
551
|
+
# setup authorization
|
552
|
+
CloudmersiveImageRecognitionApiClient.configure do |config|
|
553
|
+
# Configure API key authorization: Apikey
|
554
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
555
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
556
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
557
|
+
end
|
558
|
+
|
559
|
+
api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
|
560
|
+
|
561
|
+
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.
|
562
|
+
|
563
|
+
|
564
|
+
begin
|
565
|
+
#Remove EXIF data from the image
|
566
|
+
result = api_instance.edit_remove_exif_data(image_file)
|
567
|
+
p result
|
568
|
+
rescue CloudmersiveImageRecognitionApiClient::ApiError => e
|
569
|
+
puts "Exception when calling EditApi->edit_remove_exif_data: #{e}"
|
570
|
+
end
|
571
|
+
```
|
572
|
+
|
573
|
+
### Parameters
|
574
|
+
|
575
|
+
Name | Type | Description | Notes
|
576
|
+
------------- | ------------- | ------------- | -------------
|
577
|
+
**image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
|
578
|
+
|
579
|
+
### Return type
|
580
|
+
|
581
|
+
**String**
|
582
|
+
|
583
|
+
### Authorization
|
584
|
+
|
585
|
+
[Apikey](../README.md#Apikey)
|
586
|
+
|
587
|
+
### HTTP request headers
|
588
|
+
|
589
|
+
- **Content-Type**: multipart/form-data
|
590
|
+
- **Accept**: application/octet-stream
|
591
|
+
|
592
|
+
|
593
|
+
|
594
|
+
# **edit_remove_transparency**
|
595
|
+
> String edit_remove_transparency(image_file)
|
596
|
+
|
597
|
+
Remove transparency from the image
|
598
|
+
|
599
|
+
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.
|
600
|
+
|
601
|
+
### Example
|
602
|
+
```ruby
|
603
|
+
# load the gem
|
604
|
+
require 'cloudmersive-image-recognition-api-client'
|
605
|
+
# setup authorization
|
606
|
+
CloudmersiveImageRecognitionApiClient.configure do |config|
|
607
|
+
# Configure API key authorization: Apikey
|
608
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
609
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
610
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
611
|
+
end
|
612
|
+
|
613
|
+
api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
|
614
|
+
|
615
|
+
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.
|
616
|
+
|
617
|
+
|
618
|
+
begin
|
619
|
+
#Remove transparency from the image
|
620
|
+
result = api_instance.edit_remove_transparency(image_file)
|
621
|
+
p result
|
622
|
+
rescue CloudmersiveImageRecognitionApiClient::ApiError => e
|
623
|
+
puts "Exception when calling EditApi->edit_remove_transparency: #{e}"
|
624
|
+
end
|
625
|
+
```
|
626
|
+
|
627
|
+
### Parameters
|
628
|
+
|
629
|
+
Name | Type | Description | Notes
|
630
|
+
------------- | ------------- | ------------- | -------------
|
631
|
+
**image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
|
632
|
+
|
633
|
+
### Return type
|
634
|
+
|
635
|
+
**String**
|
636
|
+
|
637
|
+
### Authorization
|
638
|
+
|
639
|
+
[Apikey](../README.md#Apikey)
|
640
|
+
|
641
|
+
### HTTP request headers
|
642
|
+
|
643
|
+
- **Content-Type**: multipart/form-data
|
644
|
+
- **Accept**: application/octet-stream
|
645
|
+
|
646
|
+
|
647
|
+
|
483
648
|
# **edit_rotate**
|
484
649
|
> String edit_rotate(degrees, image_file)
|
485
650
|
|
@@ -503,7 +668,7 @@ api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
|
|
503
668
|
|
504
669
|
degrees = 1.2 # Float | Degrees to rotate the image; values range from 0.0 to 360.0.
|
505
670
|
|
506
|
-
image_file = File.new(
|
671
|
+
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.
|
507
672
|
|
508
673
|
|
509
674
|
begin
|