Image format, size, colour mode and EXIF basics

Returns an image's format, dimensions, colour mode, file size, animation and EXIF data.

Request

POSThttps://image-tools.p.apihiver.com/v1/info

Upload the image in the file field (max 25 MB). Instead of a file you can send JSON: {"url": "https://…"} for a public image URL, or {"base64": "…"}.

*
No file chosen
File. The image file (JPG, PNG, WebP, GIF, BMP or TIFF).

Parameters and body structure are inherited from this endpoint's definition. Changes here only apply to this test run.

Language
Client
1curl --request POST \
2  --url https://image-tools.p.apihiver.com/v1/info \
3  --header 'Accept: application/json' \
4  --header 'X-API-Key: YOUR_API_KEY' \
5  --header 'content-type: multipart/form-data' \
6  --form file=@file.bin

Image format, size, colour mode and EXIF basics: Image Tools API reference

Returns an image's format, dimensions, colour mode, file size, animation and EXIF data. This endpoint is part of the Image Tools API: Resize, crop, convert, rotate and compress images, add text watermarks, extract colour palettes and make placeholder images.

Example response (200, application/json)

Success.

1{
2  "exif": {},
3  "mode": "RGB",
4  "width": 900,
5  "format": "PNG",
6  "frames": 1,
7  "height": 300,
8  "animated": false,
9  "file_size_bytes": 18451,
10  "has_transparency": false
11}

Errors

  • 400 — A required parameter is missing or a value has the wrong format.
    1{
    2  "error": {
    3    "code": "INVALID_INPUT",
    4    "message": "Provide a file upload, 'url', or 'base64'."
    5  }
    6}

Gateway errors (missing key, no subscription, rate limits) are listed in Error codes.