WebP
, JPG
, JPEG
, PNG
, BMP
, GIF
, and TIFF
.https://api.apyhub.com/processor/image/filter/file
POST
multipart/form-data
Attribute | Type | Mandatory | Description |
---|---|---|---|
output | String | No | The name of the output file, defaults to output.png |
filter | Integer | Yes | The filter that you want to apply on the image. The available options are given below |
preserve_format | Boolean | No | To preserve the format of the output image file, set it to true . The default is false , which returns a jpeg image. |
Options | Description |
---|---|
rotate_45 | This will rotate the image by 45° |
rotate_90 | This will rotate the image by 90° |
rotate_135 | This will rotate the image by 135° |
rotate_180 | This will rotate the image by 180° |
rotate_225 | This will rotate the image by 225° |
rotate_270 | This will rotate the image by 270° |
rotate_315 | This will rotate the image by 315° |
maximum | This removes negative outlier noise from the image |
minimum | This removes positive outlier noise from the image |
brightness_decrease | This decreases the overall brighness of the image |
brightness_increase | This increases the overall brighness of the image |
gaussian_blur | This mutes the noise and blur the image |
flip_vertical | This flips the image vertically |
flip_horizontal | This flips the image horizontally |
gamma_0.5 | This reduces the gamma value to 0.5, images becomes darker with high contrast and low brightness |
Attribute | Type | Mandatory | Description |
---|---|---|---|
image | File | Yes | The source image file in supported formats such as png , jpeg , jpg , bmp , tiff , gif , or webp . |
Status Code | Description |
---|---|
200 | The request was successful. |
401 | Required authentication information is either missing or not valid for the resource. |
400 | Invalid input - the image file is corrupt or the filter attribute is not provided. |
500 | If any unexpected error occurs while processing the request. |
tokens
or basic authentication
mechanisms.
You can generate and view your existing credentials from your workspace settings (on the left side of the navbar) and go to “API Keys".apy-token
as the header parameter to pass the token.Authorization
header to send the basic authentication credentials.