# Image conversion

CKBox converts images on the fly during upload and when you fetch images from CKBox on demand.

<a id="format-and-size">

## Format and size

While `webp` is the default format, you can convert image files to all file formats allowed in the CKBox configuration. By default, these include `webp`, `jpeg`, `png`, `gif`, and `tiff`. You can also control the horizontal size of the image.

<a id="example">

### Example

You can access various optimized image versions by a specifically formatted URL. You can find the base URL in the bottom section of the [asset properties panel](../file-management/assets/metadata.md#metadata).

For example, if the image has a base URL like this:

```
https://ckbox.cloud/huTfIec9s6SodytaMc9x/assets/1aUrKtJqioMR/file
```

It will display the full-size 1600px-wide file.

If you need a smaller version in a different size, replace the `file` at the end of the URL with the `images/` slug followed by the horizontal resolution and the file format desired. The URL below will produce a 320 pixels wide `png` file, pictured below.

```
https://ckbox.cloud/huTfIec9s6SodytaMc9x/assets/1aUrKtJqioMR/images/320.png
```

Optimized image:

> **Note**
>
> Bear in mind that CKBox will serve the **closest available** optimized image size. Refer to the [Responsive images](responsive-images.md) guide to learn more about the optimized image creation process.

You can read more about calling optimized images in the [CKBox API reference](https://api.ckbox.io/api/docs#tag/Assets/operation/getImageHandler).

<a id="quality">

## Quality

CKBox controls the quality of uploaded images. Refer to the [Optimization](optimization.md) guide for more details.

> **Note**
>
> Need more functionality? [Take a survey](https://surveys.hotjar.com/1d72aefc-0073-416d-9e70-b773458881b4) and help us develop CKBox to suit your needs better!

---

Full index of the CKBox documentation: [llms.txt](../../../llms.txt)
