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

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: 3e720f75607bf15602cf53ddd46928616c5ea103bd9a18dce4f56c8e06ed62eb
4
- data.tar.gz: 26ab7464ab6505d2c8854146abab327184f4b70ceea9d9ad131dd50556ed061d
3
+ metadata.gz: 41fa09c88a0473f34c19bfd641997b7dbc9d7f288556a536bd3f8c5deda45abf
4
+ data.tar.gz: 60cd2b802ce66a05bf65e9004fac43c2f3e9740cdf1e75e1ab1b0e4a87219689
5
5
  SHA512:
6
- metadata.gz: 87e8c82a5b98f80d0359899d1e86be9d9e0beee4723878b043386449bee740071e9c460822042d31032dbf6224de9a405449a49094dea0cf3833f8040c194869
7
- data.tar.gz: bb199080d30b714069fb0301b004b50393db7aab9747fd64210dc7b613553aeb3adbfb46c1883bb4c08f94961b7094fee442cd681c8e009e1d88e0dbbac0f0e1
6
+ metadata.gz: d4fb99faff2684c7d9876fe4e6b5560f339a0c1dfc36ed9f2209fba3be293f1e45cf3886802c7698ac27c3f99dd4cd7d97eaf33876ca2fcf88c9339766bec879
7
+ data.tar.gz: 83b0f033de76388f589451701e1c09d6e1601d0d895e979f6973d7e81210247a89243baa9911d162dea629e3f080b45c9fcc2248a903eb509abc2b5e6ecf7de1
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.2
10
+ - Package version: 1.4.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-1.4.2.gem
26
+ gem install ./cloudmersive-image-recognition-api-client-1.4.3.gem
27
27
  ```
28
- (for development, run `gem install --dev ./cloudmersive-image-recognition-api-client-1.4.2.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./cloudmersive-image-recognition-api-client-1.4.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', '~> 1.4.2'
34
+ gem 'cloudmersive-image-recognition-api-client', '~> 1.4.3'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -86,9 +86,13 @@ All URIs are relative to *https://api.cloudmersive.com*
86
86
  Class | Method | HTTP request | Description
87
87
  ------------ | ------------- | ------------- | -------------
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
+ *CloudmersiveImageRecognitionApiClient::ConvertApi* | [**convert_to_bmp**](docs/ConvertApi.md#convert_to_bmp) | **POST** /image/convert/to/bmp | Convert input image to Bitmap BMP format
89
90
  *CloudmersiveImageRecognitionApiClient::ConvertApi* | [**convert_to_gif**](docs/ConvertApi.md#convert_to_gif) | **POST** /image/convert/to/gif | Convert input image to GIF format
90
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
+ *CloudmersiveImageRecognitionApiClient::ConvertApi* | [**convert_to_photoshop**](docs/ConvertApi.md#convert_to_photoshop) | **POST** /image/convert/to/psd | Convert input image to Photoshop PSD format
91
93
  *CloudmersiveImageRecognitionApiClient::ConvertApi* | [**convert_to_png**](docs/ConvertApi.md#convert_to_png) | **POST** /image/convert/to/png | Convert input image to PNG format
94
+ *CloudmersiveImageRecognitionApiClient::ConvertApi* | [**convert_to_tiff**](docs/ConvertApi.md#convert_to_tiff) | **POST** /image/convert/to/tiff | Convert input image to TIFF format
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
92
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
93
97
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_composite_basic**](docs/EditApi.md#edit_composite_basic) | **POST** /image/edit/composite/{location} | Composite two images together
94
98
  *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
@@ -114,6 +118,7 @@ Class | Method | HTTP request | Description
114
118
  *CloudmersiveImageRecognitionApiClient::FilterApi* | [**filter_posterize**](docs/FilterApi.md#filter_posterize) | **POST** /image/filter/posterize | Posterize the image by reducing distinct colors
115
119
  *CloudmersiveImageRecognitionApiClient::FilterApi* | [**filter_swirl**](docs/FilterApi.md#filter_swirl) | **POST** /image/filter/swirl | Swirl distort the image
116
120
  *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, including EXIF and resolution
117
122
  *CloudmersiveImageRecognitionApiClient::NsfwApi* | [**nsfw_classify**](docs/NsfwApi.md#nsfw_classify) | **POST** /image/nsfw/classify | Not safe for work (NSFW) racy content classification
118
123
  *CloudmersiveImageRecognitionApiClient::RecognizeApi* | [**recognize_describe**](docs/RecognizeApi.md#recognize_describe) | **POST** /image/recognize/describe | Describe an image in natural language
119
124
  *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
@@ -152,6 +157,8 @@ Class | Method | HTTP request | Description
152
157
  - [CloudmersiveImageRecognitionApiClient::FineTextItem](docs/FineTextItem.md)
153
158
  - [CloudmersiveImageRecognitionApiClient::GenderDetectionResult](docs/GenderDetectionResult.md)
154
159
  - [CloudmersiveImageRecognitionApiClient::ImageDescriptionResponse](docs/ImageDescriptionResponse.md)
160
+ - [CloudmersiveImageRecognitionApiClient::ImageMetadata](docs/ImageMetadata.md)
161
+ - [CloudmersiveImageRecognitionApiClient::ImageMetadataExifValue](docs/ImageMetadataExifValue.md)
155
162
  - [CloudmersiveImageRecognitionApiClient::NsfwResult](docs/NsfwResult.md)
156
163
  - [CloudmersiveImageRecognitionApiClient::ObjectDetectionResult](docs/ObjectDetectionResult.md)
157
164
  - [CloudmersiveImageRecognitionApiClient::PersonWithAge](docs/PersonWithAge.md)
@@ -4,9 +4,67 @@ All URIs are relative to *https://api.cloudmersive.com*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**convert_to_bmp**](ConvertApi.md#convert_to_bmp) | **POST** /image/convert/to/bmp | Convert input image to Bitmap BMP format
7
8
  [**convert_to_gif**](ConvertApi.md#convert_to_gif) | **POST** /image/convert/to/gif | Convert input image to GIF format
8
9
  [**convert_to_jpg**](ConvertApi.md#convert_to_jpg) | **POST** /image/convert/to/jpg/{quality} | Convert input image to JPG/JPEG format
10
+ [**convert_to_photoshop**](ConvertApi.md#convert_to_photoshop) | **POST** /image/convert/to/psd | Convert input image to Photoshop PSD format
9
11
  [**convert_to_png**](ConvertApi.md#convert_to_png) | **POST** /image/convert/to/png | Convert input image to PNG format
12
+ [**convert_to_tiff**](ConvertApi.md#convert_to_tiff) | **POST** /image/convert/to/tiff | Convert input image to TIFF format
13
+ [**convert_to_web_p**](ConvertApi.md#convert_to_web_p) | **POST** /image/convert/to/webp | Convert input image to WebP format
14
+
15
+
16
+ # **convert_to_bmp**
17
+ > String convert_to_bmp(image_file)
18
+
19
+ Convert input image to Bitmap BMP format
20
+
21
+ 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.
22
+
23
+ ### Example
24
+ ```ruby
25
+ # load the gem
26
+ require 'cloudmersive-image-recognition-api-client'
27
+ # setup authorization
28
+ CloudmersiveImageRecognitionApiClient.configure do |config|
29
+ # Configure API key authorization: Apikey
30
+ config.api_key['Apikey'] = 'YOUR API KEY'
31
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
32
+ #config.api_key_prefix['Apikey'] = 'Bearer'
33
+ end
34
+
35
+ api_instance = CloudmersiveImageRecognitionApiClient::ConvertApi.new
36
+
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
+
39
+
40
+ begin
41
+ #Convert input image to Bitmap BMP format
42
+ result = api_instance.convert_to_bmp(image_file)
43
+ p result
44
+ rescue CloudmersiveImageRecognitionApiClient::ApiError => e
45
+ puts "Exception when calling ConvertApi->convert_to_bmp: #{e}"
46
+ end
47
+ ```
48
+
49
+ ### Parameters
50
+
51
+ Name | Type | Description | Notes
52
+ ------------- | ------------- | ------------- | -------------
53
+ **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
54
+
55
+ ### Return type
56
+
57
+ **String**
58
+
59
+ ### Authorization
60
+
61
+ [Apikey](../README.md#Apikey)
62
+
63
+ ### HTTP request headers
64
+
65
+ - **Content-Type**: multipart/form-data
66
+ - **Accept**: application/octet-stream
67
+
10
68
 
11
69
 
12
70
  # **convert_to_gif**
@@ -120,6 +178,60 @@ Name | Type | Description | Notes
120
178
 
121
179
 
122
180
 
181
+ # **convert_to_photoshop**
182
+ > String convert_to_photoshop(image_file)
183
+
184
+ Convert input image to Photoshop PSD format
185
+
186
+ 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.
187
+
188
+ ### Example
189
+ ```ruby
190
+ # load the gem
191
+ require 'cloudmersive-image-recognition-api-client'
192
+ # setup authorization
193
+ CloudmersiveImageRecognitionApiClient.configure do |config|
194
+ # Configure API key authorization: Apikey
195
+ config.api_key['Apikey'] = 'YOUR API KEY'
196
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
197
+ #config.api_key_prefix['Apikey'] = 'Bearer'
198
+ end
199
+
200
+ api_instance = CloudmersiveImageRecognitionApiClient::ConvertApi.new
201
+
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
+
204
+
205
+ begin
206
+ #Convert input image to Photoshop PSD format
207
+ result = api_instance.convert_to_photoshop(image_file)
208
+ p result
209
+ rescue CloudmersiveImageRecognitionApiClient::ApiError => e
210
+ puts "Exception when calling ConvertApi->convert_to_photoshop: #{e}"
211
+ end
212
+ ```
213
+
214
+ ### Parameters
215
+
216
+ Name | Type | Description | Notes
217
+ ------------- | ------------- | ------------- | -------------
218
+ **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
219
+
220
+ ### Return type
221
+
222
+ **String**
223
+
224
+ ### Authorization
225
+
226
+ [Apikey](../README.md#Apikey)
227
+
228
+ ### HTTP request headers
229
+
230
+ - **Content-Type**: multipart/form-data
231
+ - **Accept**: application/octet-stream
232
+
233
+
234
+
123
235
  # **convert_to_png**
124
236
  > String convert_to_png(image_file)
125
237
 
@@ -174,3 +286,111 @@ Name | Type | Description | Notes
174
286
 
175
287
 
176
288
 
289
+ # **convert_to_tiff**
290
+ > String convert_to_tiff(image_file)
291
+
292
+ Convert input image to TIFF format
293
+
294
+ 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.
295
+
296
+ ### Example
297
+ ```ruby
298
+ # load the gem
299
+ require 'cloudmersive-image-recognition-api-client'
300
+ # setup authorization
301
+ CloudmersiveImageRecognitionApiClient.configure do |config|
302
+ # Configure API key authorization: Apikey
303
+ config.api_key['Apikey'] = 'YOUR API KEY'
304
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
305
+ #config.api_key_prefix['Apikey'] = 'Bearer'
306
+ end
307
+
308
+ api_instance = CloudmersiveImageRecognitionApiClient::ConvertApi.new
309
+
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
+
312
+
313
+ begin
314
+ #Convert input image to TIFF format
315
+ result = api_instance.convert_to_tiff(image_file)
316
+ p result
317
+ rescue CloudmersiveImageRecognitionApiClient::ApiError => e
318
+ puts "Exception when calling ConvertApi->convert_to_tiff: #{e}"
319
+ end
320
+ ```
321
+
322
+ ### Parameters
323
+
324
+ Name | Type | Description | Notes
325
+ ------------- | ------------- | ------------- | -------------
326
+ **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
327
+
328
+ ### Return type
329
+
330
+ **String**
331
+
332
+ ### Authorization
333
+
334
+ [Apikey](../README.md#Apikey)
335
+
336
+ ### HTTP request headers
337
+
338
+ - **Content-Type**: multipart/form-data
339
+ - **Accept**: application/octet-stream
340
+
341
+
342
+
343
+ # **convert_to_web_p**
344
+ > String convert_to_web_p(image_file)
345
+
346
+ Convert input image to WebP format
347
+
348
+ 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.
349
+
350
+ ### Example
351
+ ```ruby
352
+ # load the gem
353
+ require 'cloudmersive-image-recognition-api-client'
354
+ # setup authorization
355
+ CloudmersiveImageRecognitionApiClient.configure do |config|
356
+ # Configure API key authorization: Apikey
357
+ config.api_key['Apikey'] = 'YOUR API KEY'
358
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
359
+ #config.api_key_prefix['Apikey'] = 'Bearer'
360
+ end
361
+
362
+ api_instance = CloudmersiveImageRecognitionApiClient::ConvertApi.new
363
+
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
+
366
+
367
+ begin
368
+ #Convert input image to WebP format
369
+ result = api_instance.convert_to_web_p(image_file)
370
+ p result
371
+ rescue CloudmersiveImageRecognitionApiClient::ApiError => e
372
+ puts "Exception when calling ConvertApi->convert_to_web_p: #{e}"
373
+ end
374
+ ```
375
+
376
+ ### Parameters
377
+
378
+ Name | Type | Description | Notes
379
+ ------------- | ------------- | ------------- | -------------
380
+ **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
381
+
382
+ ### Return type
383
+
384
+ **String**
385
+
386
+ ### Authorization
387
+
388
+ [Apikey](../README.md#Apikey)
389
+
390
+ ### HTTP request headers
391
+
392
+ - **Content-Type**: multipart/form-data
393
+ - **Accept**: application/octet-stream
394
+
395
+
396
+
@@ -0,0 +1,15 @@
1
+ # CloudmersiveImageRecognitionApiClient::ImageMetadata
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
7
+ **file_format** | **String** | File format of the image | [optional]
8
+ **width** | **Integer** | Width of the image in pixels | [optional]
9
+ **height** | **Integer** | Height of the image in pixels | [optional]
10
+ **bit_depth** | **Integer** | Bits per pixel | [optional]
11
+ **color_space** | **String** | Color space of the image | [optional]
12
+ **exif_profile_name** | **String** | Name of the EXIF profile used | [optional]
13
+ **exif_values** | [**Array<ImageMetadataExifValue>**](ImageMetadataExifValue.md) | EXIF tags and values embedded in the image | [optional]
14
+
15
+
@@ -0,0 +1,10 @@
1
+ # CloudmersiveImageRecognitionApiClient::ImageMetadataExifValue
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **tag** | **String** | Tag name for the EXIF value | [optional]
7
+ **data_type** | **String** | Date type of the EXIF value | [optional]
8
+ **data_value** | **String** | Value, formatted as a string of the EXIF value | [optional]
9
+
10
+
@@ -5,6 +5,7 @@ All URIs are relative to *https://api.cloudmersive.com*
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**info_get_dominant_color**](InfoApi.md#info_get_dominant_color) | **POST** /image/get-info/dominant-color | Returns the dominant colors of the image
8
+ [**info_get_metadata**](InfoApi.md#info_get_metadata) | **POST** /image/get-info/metadata | Returns the image metadata, including EXIF and resolution
8
9
 
9
10
 
10
11
  # **info_get_dominant_color**
@@ -61,3 +62,57 @@ Name | Type | Description | Notes
61
62
 
62
63
 
63
64
 
65
+ # **info_get_metadata**
66
+ > ImageMetadata info_get_metadata(image_file)
67
+
68
+ Returns the image metadata, including EXIF and resolution
69
+
70
+ Returns the metadata information on the image, including file type, EXIF (if available), and resolution.
71
+
72
+ ### Example
73
+ ```ruby
74
+ # load the gem
75
+ require 'cloudmersive-image-recognition-api-client'
76
+ # setup authorization
77
+ CloudmersiveImageRecognitionApiClient.configure do |config|
78
+ # Configure API key authorization: Apikey
79
+ config.api_key['Apikey'] = 'YOUR API KEY'
80
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
81
+ #config.api_key_prefix['Apikey'] = 'Bearer'
82
+ end
83
+
84
+ api_instance = CloudmersiveImageRecognitionApiClient::InfoApi.new
85
+
86
+ 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.
87
+
88
+
89
+ begin
90
+ #Returns the image metadata, including EXIF and resolution
91
+ result = api_instance.info_get_metadata(image_file)
92
+ p result
93
+ rescue CloudmersiveImageRecognitionApiClient::ApiError => e
94
+ puts "Exception when calling InfoApi->info_get_metadata: #{e}"
95
+ end
96
+ ```
97
+
98
+ ### Parameters
99
+
100
+ Name | Type | Description | Notes
101
+ ------------- | ------------- | ------------- | -------------
102
+ **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
103
+
104
+ ### Return type
105
+
106
+ [**ImageMetadata**](ImageMetadata.md)
107
+
108
+ ### Authorization
109
+
110
+ [Apikey](../README.md#Apikey)
111
+
112
+ ### HTTP request headers
113
+
114
+ - **Content-Type**: multipart/form-data
115
+ - **Accept**: application/json, text/json, application/xml, text/xml
116
+
117
+
118
+
@@ -40,6 +40,8 @@ require 'cloudmersive-image-recognition-api-client/models/fine_text_detection_re
40
40
  require 'cloudmersive-image-recognition-api-client/models/fine_text_item'
41
41
  require 'cloudmersive-image-recognition-api-client/models/gender_detection_result'
42
42
  require 'cloudmersive-image-recognition-api-client/models/image_description_response'
43
+ require 'cloudmersive-image-recognition-api-client/models/image_metadata'
44
+ require 'cloudmersive-image-recognition-api-client/models/image_metadata_exif_value'
43
45
  require 'cloudmersive-image-recognition-api-client/models/nsfw_result'
44
46
  require 'cloudmersive-image-recognition-api-client/models/object_detection_result'
45
47
  require 'cloudmersive-image-recognition-api-client/models/person_with_age'
@@ -20,6 +20,62 @@ module CloudmersiveImageRecognitionApiClient
20
20
  @api_client = api_client
21
21
  end
22
22
 
23
+ # Convert input image to Bitmap BMP format
24
+ # 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
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [String]
28
+ def convert_to_bmp(image_file, opts = {})
29
+ data, _status_code, _headers = convert_to_bmp_with_http_info(image_file, opts)
30
+ return data
31
+ end
32
+
33
+ # Convert input image to Bitmap BMP format
34
+ # 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.
35
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
36
+ # @param [Hash] opts the optional parameters
37
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
38
+ def convert_to_bmp_with_http_info(image_file, opts = {})
39
+ if @api_client.config.debugging
40
+ @api_client.config.logger.debug "Calling API: ConvertApi.convert_to_bmp ..."
41
+ end
42
+ # verify the required parameter 'image_file' is set
43
+ if @api_client.config.client_side_validation && image_file.nil?
44
+ fail ArgumentError, "Missing the required parameter 'image_file' when calling ConvertApi.convert_to_bmp"
45
+ end
46
+ # resource path
47
+ local_var_path = "/image/convert/to/bmp"
48
+
49
+ # query parameters
50
+ query_params = {}
51
+
52
+ # header parameters
53
+ header_params = {}
54
+ # HTTP header 'Accept' (if needed)
55
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
56
+ # HTTP header 'Content-Type'
57
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
58
+
59
+ # form parameters
60
+ form_params = {}
61
+ form_params["imageFile"] = image_file
62
+
63
+ # http body (model)
64
+ post_body = nil
65
+ auth_names = ['Apikey']
66
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
67
+ :header_params => header_params,
68
+ :query_params => query_params,
69
+ :form_params => form_params,
70
+ :body => post_body,
71
+ :auth_names => auth_names,
72
+ :return_type => 'String')
73
+ if @api_client.config.debugging
74
+ @api_client.config.logger.debug "API called: ConvertApi#convert_to_bmp\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
75
+ end
76
+ return data, status_code, headers
77
+ end
78
+
23
79
  # Convert input image to GIF format
24
80
  # 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.
25
81
  # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
@@ -138,6 +194,62 @@ module CloudmersiveImageRecognitionApiClient
138
194
  return data, status_code, headers
139
195
  end
140
196
 
197
+ # Convert input image to Photoshop PSD format
198
+ # 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
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
200
+ # @param [Hash] opts the optional parameters
201
+ # @return [String]
202
+ def convert_to_photoshop(image_file, opts = {})
203
+ data, _status_code, _headers = convert_to_photoshop_with_http_info(image_file, opts)
204
+ return data
205
+ end
206
+
207
+ # Convert input image to Photoshop PSD format
208
+ # 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.
209
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
210
+ # @param [Hash] opts the optional parameters
211
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
212
+ def convert_to_photoshop_with_http_info(image_file, opts = {})
213
+ if @api_client.config.debugging
214
+ @api_client.config.logger.debug "Calling API: ConvertApi.convert_to_photoshop ..."
215
+ end
216
+ # verify the required parameter 'image_file' is set
217
+ if @api_client.config.client_side_validation && image_file.nil?
218
+ fail ArgumentError, "Missing the required parameter 'image_file' when calling ConvertApi.convert_to_photoshop"
219
+ end
220
+ # resource path
221
+ local_var_path = "/image/convert/to/psd"
222
+
223
+ # query parameters
224
+ query_params = {}
225
+
226
+ # header parameters
227
+ header_params = {}
228
+ # HTTP header 'Accept' (if needed)
229
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
230
+ # HTTP header 'Content-Type'
231
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
232
+
233
+ # form parameters
234
+ form_params = {}
235
+ form_params["imageFile"] = image_file
236
+
237
+ # http body (model)
238
+ post_body = nil
239
+ auth_names = ['Apikey']
240
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
241
+ :header_params => header_params,
242
+ :query_params => query_params,
243
+ :form_params => form_params,
244
+ :body => post_body,
245
+ :auth_names => auth_names,
246
+ :return_type => 'String')
247
+ if @api_client.config.debugging
248
+ @api_client.config.logger.debug "API called: ConvertApi#convert_to_photoshop\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
249
+ end
250
+ return data, status_code, headers
251
+ end
252
+
141
253
  # Convert input image to PNG format
142
254
  # 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.
143
255
  # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
@@ -193,5 +305,117 @@ module CloudmersiveImageRecognitionApiClient
193
305
  end
194
306
  return data, status_code, headers
195
307
  end
308
+
309
+ # Convert input image to TIFF format
310
+ # 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
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
312
+ # @param [Hash] opts the optional parameters
313
+ # @return [String]
314
+ def convert_to_tiff(image_file, opts = {})
315
+ data, _status_code, _headers = convert_to_tiff_with_http_info(image_file, opts)
316
+ return data
317
+ end
318
+
319
+ # Convert input image to TIFF format
320
+ # 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.
321
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
322
+ # @param [Hash] opts the optional parameters
323
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
324
+ def convert_to_tiff_with_http_info(image_file, opts = {})
325
+ if @api_client.config.debugging
326
+ @api_client.config.logger.debug "Calling API: ConvertApi.convert_to_tiff ..."
327
+ end
328
+ # verify the required parameter 'image_file' is set
329
+ if @api_client.config.client_side_validation && image_file.nil?
330
+ fail ArgumentError, "Missing the required parameter 'image_file' when calling ConvertApi.convert_to_tiff"
331
+ end
332
+ # resource path
333
+ local_var_path = "/image/convert/to/tiff"
334
+
335
+ # query parameters
336
+ query_params = {}
337
+
338
+ # header parameters
339
+ header_params = {}
340
+ # HTTP header 'Accept' (if needed)
341
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
342
+ # HTTP header 'Content-Type'
343
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
344
+
345
+ # form parameters
346
+ form_params = {}
347
+ form_params["imageFile"] = image_file
348
+
349
+ # http body (model)
350
+ post_body = nil
351
+ auth_names = ['Apikey']
352
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
353
+ :header_params => header_params,
354
+ :query_params => query_params,
355
+ :form_params => form_params,
356
+ :body => post_body,
357
+ :auth_names => auth_names,
358
+ :return_type => 'String')
359
+ if @api_client.config.debugging
360
+ @api_client.config.logger.debug "API called: ConvertApi#convert_to_tiff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
361
+ end
362
+ return data, status_code, headers
363
+ end
364
+
365
+ # Convert input image to WebP format
366
+ # 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
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
368
+ # @param [Hash] opts the optional parameters
369
+ # @return [String]
370
+ def convert_to_web_p(image_file, opts = {})
371
+ data, _status_code, _headers = convert_to_web_p_with_http_info(image_file, opts)
372
+ return data
373
+ end
374
+
375
+ # Convert input image to WebP format
376
+ # 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.
377
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
378
+ # @param [Hash] opts the optional parameters
379
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
380
+ def convert_to_web_p_with_http_info(image_file, opts = {})
381
+ if @api_client.config.debugging
382
+ @api_client.config.logger.debug "Calling API: ConvertApi.convert_to_web_p ..."
383
+ end
384
+ # verify the required parameter 'image_file' is set
385
+ if @api_client.config.client_side_validation && image_file.nil?
386
+ fail ArgumentError, "Missing the required parameter 'image_file' when calling ConvertApi.convert_to_web_p"
387
+ end
388
+ # resource path
389
+ local_var_path = "/image/convert/to/webp"
390
+
391
+ # query parameters
392
+ query_params = {}
393
+
394
+ # header parameters
395
+ header_params = {}
396
+ # HTTP header 'Accept' (if needed)
397
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
398
+ # HTTP header 'Content-Type'
399
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
400
+
401
+ # form parameters
402
+ form_params = {}
403
+ form_params["imageFile"] = image_file
404
+
405
+ # http body (model)
406
+ post_body = nil
407
+ auth_names = ['Apikey']
408
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
409
+ :header_params => header_params,
410
+ :query_params => query_params,
411
+ :form_params => form_params,
412
+ :body => post_body,
413
+ :auth_names => auth_names,
414
+ :return_type => 'String')
415
+ if @api_client.config.debugging
416
+ @api_client.config.logger.debug "API called: ConvertApi#convert_to_web_p\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
417
+ end
418
+ return data, status_code, headers
419
+ end
196
420
  end
197
421
  end