> For the complete documentation index, see [llms.txt](https://docs.comfortable.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.comfortable.io/apis/image-manipulation.md).

# Image Manipulation

## imgix

![](/files/-LEjfxIBawUfzF3Ruqq8)

Image assets uploaded to Comfortable are available via [imgix](https://www.imgix.com/), a powerful service offering real-time image processing like resizing, cropping, compression or optimization per device. All of the images are served by a fast CDN.

To learn what you can do with imgix, have a look at the [imgix API Reference](https://docs.imgix.com/apis/url).

## API Image URL

Comfortable automatically detects image assets and makes them available on the at the following URL by default, when you query a document:

{% code title="Image API Base URL" %}

```http
https://images.cmft.io/
```

{% endcode %}

Images can also be retrieved like regular assets at `https://assets.cmft.io/`, but without the power of the image manipulation API.

## Basic Examples

```javascript
// Image URL without manipulation
https://images.cmft.io/<repo>/awesome-image.jpg

// Resizing to 600px
https://images.cmft.io/<repo>/awesome-image.jpg?w=600

// Resizing to 300x100 with fit=crop
https://images.cmft.io/<repo>/awesome-image.jpg?fit=crop&w=300&h=100
```

To see more examples, visit the[ imgix API Reference](https://docs.imgix.com/apis/url).
