> ## Documentation Index
> Fetch the complete documentation index at: https://learn.workflow.dog/llms.txt
> Use this file to discover all available pages before exploring further.

# Convert Image Format

> Convert an image to JPEG, PNG, WebP, AVIF, or TIFF.

**Convert Image Format** decodes an image and re-encodes it in a selected image
format. The output filename receives the new extension.

## Inputs

| Input       | Type                                     | Required | Description                                |
| ----------- | ---------------------------------------- | -------- | ------------------------------------------ |
| **Image**   | File                                     | Yes      | The source image.                          |
| **Format**  | `jpeg`, `png`, `webp`, `avif`, or `tiff` | Yes      | Target encoding. Defaults to `jpeg`.       |
| **Quality** | Number                                   | No       | Value from `1` to `100`. Defaults to `90`. |

**Quality** controls lossy quality for JPEG, WebP, AVIF, and TIFF. For PNG, it
is translated into a compression level: lower quality values request more
compression, but do not intentionally discard pixels in the way JPEG does.

## Output

| Output              | Type | Description                                       |
| ------------------- | ---- | ------------------------------------------------- |
| **Converted Image** | File | The re-encoded image with the selected extension. |

<Warning>
  The current output file may retain the input image's MIME type even though its
  filename and bytes use the new format. When a downstream service relies
  strictly on MIME metadata, verify what it receives.
</Warning>

Choose PNG when transparency or lossless pixels matter, JPEG for broadly
compatible photographs, and WebP or AVIF when smaller modern web assets are
more important.
