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.
Overview
ButterCMS integrates with Filestack to provide powerful image transformation capabilities through URL parameters. Transform images on-the-fly without modifying originals—perfect for responsive images, thumbnails, and optimized delivery.Key benefits
- No Pre-processing: Transform images at request time
- CDN Cached: Transformed images are cached globally
- Original Preserved: Original files remain unchanged
- Chainable: Combine multiple transformations
URL structure
All images in ButterCMS have a CDN URL. Add transformation tasks before the file ID:Chaining transformations
Combine multiple transformations with forward slashes:Resize transformations
Basic resize
| Parameter | Description | Example |
|---|---|---|
width | Target width in pixels | resize=width:800 |
height | Target height in pixels | resize=height:600 |
width,height | Both dimensions | resize=width:800,height:600 |
Resize options
| Option | Values | Description |
|---|---|---|
fit | clip, crop, scale, max | How to fit the image |
align | center, top, bottom, left, right, faces | Alignment for crop/fit |
Fit modes
| Mode | Behavior |
|---|---|
clip | Resize to fit within bounds, maintain aspect ratio (default) |
crop | Resize and crop to exact dimensions |
scale | Stretch to exact dimensions (may distort) |
max | Resize to not exceed bounds |
Crop transformations
Basic crop
Smart crop (face detection)
Automatically crop around detected faces:Face detection is provided by Filestack’s processing API. Feature availability may vary by plan.
Rotation & flip
Rotate
| Value | Description |
|---|---|
90 | Rotate 90° clockwise |
180 | Rotate 180° |
270 | Rotate 270° clockwise |
exif | Auto-rotate based on EXIF data |
Flip
| Task | Description |
|---|---|
flip | Flip vertically |
flop | Flip horizontally |
Quality & format
Quality compression
Control JPEG/WebP quality (0-100):Format conversion
Convert between image formats:| Format | Use Case |
|---|---|
jpg | Photos, complex images |
png | Graphics with transparency |
webp | Modern browsers, best compression |
gif | Animations |
Filters & effects
Blur
Sharpen
Grayscale
Sepia
Brightness & contrast
Watermarks & overlays
Watermark functionality is provided by Filestack’s processing API. Feature availability may vary by plan.
Basic watermark
| Position | Description |
|---|---|
top | Top center |
bottom | Bottom center |
left | Left center |
right | Right center |
center | Center |
[top,left] | Specific coordinates |
Common transformation recipes
Thumbnail (square)
Hero image (optimized)
Avatar with face detection
Blog featured image
Card image
Code examples
Next steps
Responsive Images
Generate responsive images
Security
Secure your images
Media Library
Media management
Image Compression
Automatic optimization