---
title: Image Converter
slug: api-marketplace/image-converter
description: Discover the anticipated document's content through this captivating SEO description, as it will soon be accessible. Stay tuned for valuable insights and information on the impending release. Don't miss out on the opportunity to delve into this valuable r
createdAt: 2023-04-20T22:39:20.000Z
---

# Introduction

The Image Converter API allows you to convert images from one format to another programmatically. This is particularly useful for applications that need to process images in specific formats, optimize images for web use, or integrate image conversion into automated workflows. By providing a URL to the image file and specifying the target format, the API returns a URL to the converted image.

## Usecases

- **Image Format Standardization**: Convert various image formats to a standard format required by your application.
- **Web Optimization**: Convert images to web-friendly formats like JPEG or PNG for faster loading times.
- **Document Processing**: Convert images to PDF for archiving or sharing purposes.
- **Compatibility**: Ensure images are in a format compatible with specific software or systems.

# API Details

## API Request&#x20;

```json
curl --location 'https://api.signzy.app/api/v3/convert/image-format' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_TOKEN' \
--data '{
    "file": "https://example.com/path/to/your/image.jpg",
    "targetFormat": "PNG"
}'
```

## Request Body Parameters

| Parameter    | Description                                                                                                                                                         | Data Type             | Mandatory/Optional |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- | ------------------ |
| file         | File which one wants to convert                                                                                                                                     | String (URL Of Image) | Mandatory          |
| targetFormat | The target format of output file<br />Supported Target Formats are<br />TIFF (.tif, .tiff)<br />JPEG (.jpg, .jpeg)<br />PDF (.pdf, first page only)<br />PNG (.png) | String                | Mandatory          |

## API Response

:::CodeblockTabs
200

```json
{
    "result": {
        "convertedFile": "https://persist.signzy.tech/api/files/unique_id/download/converted_image.png"
    }
}

```

400 (No Target Format)

```json
{
    "error": {
        "name": "error",
        "message": "Target format is required",
        "status": 400,
        "reason": "VALIDATION_ERROR",
        "type": "Bad Request",
        "statusCode": 400
    }
}
```

400 (Wrong Input File Format)

```json
{
    "error": {
        "name": "error",
        "message": "Invalid File Uploaded",
        "status": 400,
        "reason": "INVALID_FILE",
        "type": "Bad Request",
        "statusCode": 400
    }
}
```
:::

