Docs/Image Utils/GET /v1/image-info

GET /v1/image-infoGet image info

Image Utils lf-image-utils

Tells you the basics of an image: how big it is, its shape, and its file size. Returns basic image information: dimensions, aspect ratio, file size, and detected format from base64 data or URL.

Query Parameters

ParameterTypeRequiredDescription
datastringYesBase64 image data or URL

Response Schema

success (boolean): Operation success
source (string): Source type
width (integer): Image width in pixels
height (integer): Image height in pixels
aspect_ratio (string): Aspect ratio
image_size (integer): Size in bytes
detected_type (string): Detected format

cURL Example

curl 'https://lf-image-utils.laminarforge.dev/v1/image-info?data=<base64_data>' -H 'Authorization: Bearer lf_YourApiKey'

Python Example

import requests
url = 'https://lf-image-utils.laminarforge.dev/v1/image-info'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'data': '<base64_data>'}
response = requests.get(url, headers=headers, params=params)
print(response.json())