# Image Manipulation

## imgix

![](https://1465026891-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LADWNm2iPQ4ngpcPfGc%2F-LEjftq_74_Z8XGBd5-r%2F-LEjfxIBawUfzF3Ruqq8%2Fimgix_logo1_med.png?alt=media\&token=9aca5f81-e870-4c42-a5d5-8be38fba3bb2)

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).
