# `PhoenixKit.Migrations.Postgres.V25`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.165/lib/phoenix_kit/migrations/postgres/v25.ex#L1)

PhoenixKit V25 Migration: Aspect Ratio Control for Dimensions

This migration adds support for aspect ratio preservation in dimension configuration.
Allows users to choose between maintaining aspect ratio (width only) or fixed dimensions.

## Changes

### Storage Dimensions Table (phoenix_kit_storage_dimensions)
- Adds `maintain_aspect_ratio` boolean column (default: true)
- When true: Only width is used, height is calculated to preserve aspect ratio
- When false: Both width and height are used as fixed dimensions (for thumbnails/crops)

## Features

- **Aspect Ratio Mode**: Responsive sizing with width-only specification
- **Fixed Dimension Mode**: Exact pixel dimensions for square crops/thumbnails
- **Per-Dimension Control**: Each variant can independently choose its mode
- **Default to Aspect Ratio**: All dimensions default to maintaining aspect ratio

# `down`

Rollback the V25 migration.

# `up`

Run the V25 migration to add aspect ratio control.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
