With this api endpoint you can convert a PDF format or TIFF format image to jpg or png.
POST https://clara.io/api/files/image
status 200
{
"_id": "the id of result image",
"hash": "the hash of result image",
"size": "the size of result image",
"type": "the format of result image",
"original": "the url of upload image",
"result": "the url of result image",
"width": "the with of result image",
"height": "the height of result image",
"originalWidth": "the width of upload image",
"originalHeight": "the height of upload image",
}
status 500
, error message in response body
curl -X POST "https://clara.io/api/files/image" \
-F "file=@/path/to/the/file" \
-F "owner=username" \
-F "name=myImage"
-F "trim=true"
Get image from url:
curl -X POST "https://clara.io/api/files/image" \
-F "url=https://path/to/the/file" \
-F "owner=username" \
-F "name=myImage"
-F "quality=75"