> For the complete documentation index, see [llms.txt](https://docs.omnidata.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.omnidata.xyz/gateway/imghub-apis/resize-image.md).

# Resize image

## Resize image to the specified width and height.

<mark style="color:blue;">`GET`</mark> `https://gateway.omnidata.xyz/ipfs/:cid`

When both a `width` and `height` are provided, the **fit** of the image will be `cover` - Preserving aspect ratio, ensure the image covers both provided dimensions by cropping/clipping to fit.

#### Path Parameters

| Name                                  | Type   | Description  |
| ------------------------------------- | ------ | ------------ |
| cid<mark style="color:red;">\*</mark> | String | The IPFS cid |

#### Query Parameters

| Name | Type   | Description                                             |
| ---- | ------ | ------------------------------------------------------- |
| w    | String | The width of the image is to be returned. e.g. `w=200`  |
| h    | String | The height of the image is to be returned. e.g. `h=200` |
