# resizeimage: Resize an Image

> resizeimage (Resize an Image) is a 1001fx API function in the group Images: POST https://api.1001fx.com/images/resizeimage, 3 credits per call. It works as a ready-made module in Make and n8n or as a plain HTTP call.

Resizes an image to the specified width and height.

- Either a height or a width need to be specified

- Group: Images
- Endpoint: `POST https://api.1001fx.com/images/resizeimage`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: multipart/form-data
- Credits: 3 credits per call
- Ready-made in: Make and n8n
- Docs: https://1001fx.com/functions/resizeimage

## Parameters

- `width` (number, optional, min 1, max 10000) – Width: The width to resize the image to.
- `height` (number, optional, min 1, max 10000) – Height: The height to resize the image to.
- `file` (file, required) – Image file: Image file to be processed.

## Example: Resize to a width of 1200

```bash
curl -X POST 'https://api.1001fx.com/images/resizeimage' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -F 'file=@1600x900.png' \
  -F 'width=1200'
```
