cloudmersive-image-api-client
Advanced tools
Comparing version 1.1.9 to 1.2.0
@@ -7,2 +7,3 @@ # CloudmersiveImageApiClient.EditApi | ||
------------- | ------------- | ------------- | ||
[**editAutoOrient**](EditApi.md#editAutoOrient) | **POST** /image/edit/auto-orient/remove-exif | Normalizes image rotation and removes EXIF rotation data | ||
[**editCompositeBasic**](EditApi.md#editCompositeBasic) | **POST** /image/edit/composite/{location} | Composite two images together | ||
@@ -14,2 +15,55 @@ [**editContrastAdaptive**](EditApi.md#editContrastAdaptive) | **POST** /image/edit/contrast/{gamma}/adaptive | Adaptively adjust the contrast of the image to be more appealing and easy to see | ||
<a name="editAutoOrient"></a> | ||
# **editAutoOrient** | ||
> 'Blob' editAutoOrient(imageFile) | ||
Normalizes image rotation and removes EXIF rotation data | ||
Automatically orients the input image based on EXIF information and then removes the EXIF information. EXIF is an additional set of information stored in some images taken with cell phone cameras based on the orientation of the camera. By normalizing rotation and removing EXIF data these images become much easier to process. | ||
### Example | ||
```javascript | ||
var CloudmersiveImageApiClient = require('cloudmersive-image-api-client'); | ||
var defaultClient = CloudmersiveImageApiClient.ApiClient.instance; | ||
// Configure API key authorization: Apikey | ||
var Apikey = defaultClient.authentications['Apikey']; | ||
Apikey.apiKey = 'YOUR API KEY'; | ||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) | ||
//Apikey.apiKeyPrefix = 'Token'; | ||
var apiInstance = new CloudmersiveImageApiClient.EditApi(); | ||
var imageFile = "/path/to/file.txt"; // File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. | ||
var callback = function(error, data, response) { | ||
if (error) { | ||
console.error(error); | ||
} else { | ||
console.log('API called successfully. Returned data: ' + data); | ||
} | ||
}; | ||
apiInstance.editAutoOrient(imageFile, callback); | ||
``` | ||
### Parameters | ||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
**imageFile** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. | | ||
### Return type | ||
**'Blob'** | ||
### Authorization | ||
[Apikey](../README.md#Apikey) | ||
### HTTP request headers | ||
- **Content-Type**: multipart/form-data | ||
- **Accept**: application/octet-stream | ||
<a name="editCompositeBasic"></a> | ||
@@ -16,0 +70,0 @@ # **editCompositeBasic** |
{ | ||
"name": "cloudmersive-image-api-client", | ||
"version": "1.1.9", | ||
"version": "1.2.0", | ||
"description": "Image_Recognition_and_Processing_APIs_let_you_use_Machine_Learning_to_recognize_and_process_images_and_also_perform_useful_image_modification_operations_", | ||
@@ -5,0 +5,0 @@ "license": "Unlicense", |
@@ -8,3 +8,3 @@ # cloudmersive-image-api-client | ||
- API version: v1 | ||
- Package version: 1.1.9 | ||
- Package version: 1.2.0 | ||
@@ -132,2 +132,3 @@ | ||
*CloudmersiveImageApiClient.ArtisticApi* | [**artisticPainting**](docs/ArtisticApi.md#artisticPainting) | **POST** /image/artistic/painting/{style} | Transform an image into an artistic painting automatically | ||
*CloudmersiveImageApiClient.EditApi* | [**editAutoOrient**](docs/EditApi.md#editAutoOrient) | **POST** /image/edit/auto-orient/remove-exif | Normalizes image rotation and removes EXIF rotation data | ||
*CloudmersiveImageApiClient.EditApi* | [**editCompositeBasic**](docs/EditApi.md#editCompositeBasic) | **POST** /image/edit/composite/{location} | Composite two images together | ||
@@ -134,0 +135,0 @@ *CloudmersiveImageApiClient.EditApi* | [**editContrastAdaptive**](docs/EditApi.md#editContrastAdaptive) | **POST** /image/edit/contrast/{gamma}/adaptive | Adaptively adjust the contrast of the image to be more appealing and easy to see |
@@ -36,3 +36,3 @@ /** | ||
* @module api/ArtisticApi | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -39,0 +39,0 @@ |
@@ -36,3 +36,3 @@ /** | ||
* @module api/EditApi | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -52,2 +52,50 @@ | ||
/** | ||
* Callback function to receive the result of the editAutoOrient operation. | ||
* @callback module:api/EditApi~editAutoOrientCallback | ||
* @param {String} error Error message, if any. | ||
* @param {'Blob'} data The data returned by the service call. | ||
* @param {String} response The complete HTTP response. | ||
*/ | ||
/** | ||
* Normalizes image rotation and removes EXIF rotation data | ||
* Automatically orients the input image based on EXIF information and then removes the EXIF information. EXIF is an additional set of information stored in some images taken with cell phone cameras based on the orientation of the camera. By normalizing rotation and removing EXIF data these images become much easier to process. | ||
* @param {File} imageFile Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. | ||
* @param {module:api/EditApi~editAutoOrientCallback} callback The callback function, accepting three arguments: error, data, response | ||
* data is of type: {@link 'Blob'} | ||
*/ | ||
this.editAutoOrient = function(imageFile, callback) { | ||
var postBody = null; | ||
// verify the required parameter 'imageFile' is set | ||
if (imageFile === undefined || imageFile === null) { | ||
throw new Error("Missing the required parameter 'imageFile' when calling editAutoOrient"); | ||
} | ||
var pathParams = { | ||
}; | ||
var queryParams = { | ||
}; | ||
var collectionQueryParams = { | ||
}; | ||
var headerParams = { | ||
}; | ||
var formParams = { | ||
'imageFile': imageFile | ||
}; | ||
var authNames = ['Apikey']; | ||
var contentTypes = ['multipart/form-data']; | ||
var accepts = ['application/octet-stream']; | ||
var returnType = 'Blob'; | ||
return this.apiClient.callApi( | ||
'/image/edit/auto-orient/remove-exif', 'POST', | ||
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, | ||
authNames, contentTypes, accepts, returnType, callback | ||
); | ||
} | ||
/** | ||
* Callback function to receive the result of the editCompositeBasic operation. | ||
@@ -54,0 +102,0 @@ * @callback module:api/EditApi~editCompositeBasicCallback |
@@ -36,3 +36,3 @@ /** | ||
* @module api/FaceApi | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -39,0 +39,0 @@ |
@@ -36,3 +36,3 @@ /** | ||
* @module api/NsfwApi | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -39,0 +39,0 @@ |
@@ -36,3 +36,3 @@ /** | ||
* @module api/RecognizeApi | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -39,0 +39,0 @@ |
@@ -36,3 +36,3 @@ /** | ||
* @module api/ResizeApi | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -39,0 +39,0 @@ |
@@ -35,3 +35,3 @@ /** | ||
* @module ApiClient | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -38,0 +38,0 @@ |
@@ -56,3 +56,3 @@ /** | ||
* @module index | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -59,0 +59,0 @@ var exports = { |
@@ -39,3 +39,3 @@ /** | ||
* @module model/AgeDetectionResult | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/DetectedLicensePlate | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/DetectedObject | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/DrawRectangleInstance | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/DrawRectangleRequest | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/DrawTextInstance | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/DrawTextRequest | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/Face | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/FaceCompareResponse | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/FaceLocateResponse | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/FaceLocateWithLandmarksResponse | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/FaceMatch | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/FacePoint | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/FaceWithLandmarks | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/FineTextDetectionResult | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/FineTextItem | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/ImageDescriptionResponse | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/NsfwResult | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/ObjectDetectionResult | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/PersonWithAge | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/RecognitionOutcome | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/TextDetectionResult | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/TextItem | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/VehicleLicensePlateDetectionResult | ||
* @version 1.1.9 | ||
* @version 1.2.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -53,2 +53,12 @@ /** | ||
describe('EditApi', function() { | ||
describe('editAutoOrient', function() { | ||
it('should call editAutoOrient successfully', function(done) { | ||
//uncomment below and update the code to test editAutoOrient | ||
//instance.editAutoOrient(function(error) { | ||
// if (error) throw error; | ||
//expect().to.be(); | ||
//}); | ||
done(); | ||
}); | ||
}); | ||
describe('editCompositeBasic', function() { | ||
@@ -55,0 +65,0 @@ it('should call editCompositeBasic successfully', function(done) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
335674
6604
190