---
title: "Resize Image"
method: POST
path: "/v1/pdf/resize-image"
tags: ["operations"]
---

# Resize Image

`POST /v1/pdf/resize-image`

## Request

- Base URL: `https://api.smartpdf.ru`
- URL: `https://api.smartpdf.ru/v1/pdf/resize-image`
- Auth: HTTP bearer

«Изменить размер фото» (change quick-tools).

## Headers

- `X-API-Key` string, nullable

## Request body

- ResizeImagesRequest: mode=percent — percent (1–500); mode=pixels — width и/или height; keep_aspect — по меньшему из масштабов.
  - `webhook_url` string, nullable: https-адрес для уведомления о завершении; подпись — заголовок X-SmartPDF-Signature (см. описание API)
  - `file_ids` string[], required
  - `mode` 'percent' | 'pixels'
  - `percent` number, nullable
  - `width` integer, nullable
  - `height` integer, nullable
  - `keep_aspect` boolean
  - `enlarge` boolean

## Response `202`

Successful Response

- TaskIdResponse
  - `task_id` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/smartpdf/apis/smartpdf-api.md) · [All operations](https://skmtc.dev/smartpdf/apis/smartpdf-api/llms.txt) · [OpenAPI document](https://skmtc.dev/smartpdf/apis/smartpdf-api/revisions/1a29161a71da?raw)
