---
title: "Get Image Dimensions"
method: GET
path: "/api/assets/getImageDimensions/{imagePath}"
tags: ["Assets"]
---

# Get Image Dimensions

`GET /api/assets/getImageDimensions/{imagePath}`

## Path parameters

- `imagePath` string, required

## Response `200`

Returns the width, height, and type of the image.

- ImageDimensionsResponseDto
  - `width` number, required — Width of the image in pixels
  - `height` number, required — Height of the image in pixels
  - `type` string, required — Image file type (e.g., jpg, png, gif, webp)

## Other responses

- `400` — Failed to get image dimensions.

## Changes

- **2026-06-06** `6d06510c66ba` — 1 info
  - endpoint added
- **2023-10-20** `bbfe1dbc457f` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/openwebgal/apis/webgal-terre-api/changes/api/assets/getImageDimensions/:imagePath/get.md)

---

[API](https://skmtc.dev/openwebgal/apis/webgal-terre-api.md) · [All operations](https://skmtc.dev/openwebgal/apis/webgal-terre-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openwebgal/webgal-terre-api/revisions/ebcacb42f932/schema)
