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

# Image editing and transformations

> Use the built-in image editor in ButterCMS to edit and transform images directly in your dashboard - no external tools required.

## Image editor overview

When you access the Media Library and select any image, you'll see the **Launch Image Editor** button. This gives you a powerful editing experience right within your Butter dashboard.

![Image Editor](https://cdn.buttercms.com/TWg3BTC3TzIvZ48ySS1u)

<Info>
  The Image Editor is available on all paid plans (Basic, Advanced, Professional, and Enterprise).
</Info>

## Editing capabilities

The image editor offers extensive manipulation and editing features:

### Transform

* **Flip** - Mirror images horizontally or vertically
* **Rotate** - Rotate images to any angle
* **Resize** - Change image dimensions
* **Crop** - Trim images to specific areas or aspect ratios

### Filters

Apply artistic filters to your images:

* Sepia
* Black & White
* Polaroid
* And more!

### Adjustments

Fine-tune your images with:

* **Blur** - Add blur effects
* **Brightness** - Adjust light levels
* **Contrast** - Enhance or reduce contrast
* **Gamma** - Adjust gamma correction
* **Hue** - Shift color tones
* **Noise** - Add or reduce noise
* **Pixelate** - Create pixel effects
* **Saturation** - Adjust color intensity

### Text overlay

Add text to your images with customizable:

* Font selection
* Font size
* Bold, Italic, Underline styles
* Text alignment

## Image resizing in WYSIWYG

Images can be resized directly from the WYSIWYG field when editing content:

![Image Resizing in WYSIWYG](https://cdn.buttercms.com/wXpPNPOZTp2wDcFCD3rw)

## Image alignment in WYSIWYG

Once you've added media to a WYSIWYG field, you can align it within the text:

1. Click on any image in your post
2. Use the alignment controls (left, center, right) on the toolbar to adjust according to your preference

![Image Alignment](https://cdn.buttercms.com/w5nT7PvtQamjmdO7PZZC)

<Info>
  Your developer may need to define CSS styling for image alignment (e.g., `float: left` or `float: right`) in your site styles.
</Info>

## Adding captions and alt text

To add a caption or alt text to an image in your content:

1. Click on the image in the editor.
2. Use the image properties dialog that appears to add **Image Description** (alt text).
3. Enable **Caption** to show a caption below the image.

![Adding Captions](https://cdn.buttercms.com/rx8DbvrRnKRjMh0zjlOQ)

## Image API transformations

ButterCMS integrates with [Filestack's Image API](https://www.filestack.com/docs/api/processing/) for advanced image optimization and transformation capabilities through URL modification.

### How it works

All stored files are available over the ButterCMS CDN. Each file's URL can be modified with processing "tasks" that transform the requested resource. Tasks can be chained together by separating them with forward slashes.

All tasks follow the structure: `TASK=option:value`, where `option:value` pairs are comma-separated.

![Image API Structure](https://cdn.buttercms.com/tBMc1ofQTCgko55BgERt)

### Quick example

Original file URL:

```text theme={null}
https://cdn.buttercms.com/Id7NsgqgQeKd8PLF0rqe
```

![Original Image](https://cdn.buttercms.com/Id7NsgqgQeKd8PLF0rqe)

To resize it, add the resize task to the URL:

```text theme={null}
https://cdn.buttercms.com/resize=height:300/Lvv0MCF0QhCoKLSuEJzD
```

### Responsive images

You can dynamically create image assets sized for specific screen sizes:

![Responsive Images](https://cdn.buttercms.com/JMbJxgJSueoEXUH5YDyA)

<Tip>
  Resizing images via URL parameters changes the actual file size delivered to users, improving performance for your website.
</Tip>

## Editing workflow

<Steps>
  <Step title="Access Media Library">
    Navigate to the Media Library in your ButterCMS dashboard
  </Step>

  <Step title="Select image">
    Click on the image you want to edit
  </Step>

  <Step title="Launch editor">
    Click the **Launch Image Editor** button
  </Step>

  <Step title="Make edits">
    Use the tools to transform, filter, adjust, or add text
  </Step>

  <Step title="Save changes">
    Click **Save** to apply your changes
  </Step>
</Steps>

### Image transformations (Image API)

ButterCMS integrates with Filestack image API that enables optimization and transformation capability for your images by modifying the URL.

Processing tasks can be chained together in the same URL by separating them with forward slashes. All tasks follow the structure of `TASK=option:value`, where `option:value` pairs are comma-separated.

![Image transformation URL structure](https://cdn.buttercms.com/tBMc1ofQTCgko55BgERt)

#### Resize example

Original URL:

```
https://cdn.buttercms.com/Id7NsgqgQeKd8PLF0rqe
```

Resized to 300px height:

```text theme={null}
https://cdn.buttercms.com/resize=height:300/Lvv0MCF0QhCoKLSuEJzD
```

![Responsive image sizes](https://cdn.buttercms.com/JMbJxgJSueoEXUH5YDyA)

#### Common transformations

| Transformation        | URL Format                         | Example                                |
| --------------------- | ---------------------------------- | -------------------------------------- |
| **Resize by width**   | `resize=width:VALUE`               | `resize=width:800`                     |
| **Resize by height**  | `resize=height:VALUE`              | `resize=height:600`                    |
| **Fit dimensions**    | `resize=width:W,height:H,fit:crop` | `resize=width:400,height:300,fit:crop` |
| **Quality**           | `quality=value:VALUE`              | `quality=value:80`                     |
| **Format conversion** | `output=format:FORMAT`             | `output=format:webp`                   |

#### Responsive images example

```html theme={null}
<picture>
  <!-- WebP for modern browsers -->
  <source
    type="image/webp"
  />
  <!-- Fallback for older browsers -->
  <img
    src="https://cdn.buttercms.com/resize=width:800/abc123"
    sizes="(max-width: 600px) 400px, (max-width: 1000px) 800px, 1200px"
    alt="Product image"
  />
</picture>
```
