Min Height
Use the min-height transformation to ensure a delivered image variant is at least a target height.
Overview
min-height only changes the output when the source image is shorter than the requested minimum. It is useful for normalizing image sets that include small uploads while leaving already-large images alone.
Syntax
| Field | Value |
|---|---|
| Canonical parameter | min-height |
| Aliases | mh, min_height |
| Accepted values | Integer pixels from 1 through 8192 |
Example
https://cdn.imgwire.dev/{organization_id}/{environment_id}/{image_id}?min-height=1200
image.url({
'min-height': 1200,
format: 'auto',
quality: 'auto',
});
imgwire images url img_123 --min-height 1200 --format auto --quality auto
Live examples
| Original height | Minimum height 1200 |
|---|---|
Best practices
- Use
min-heightfor normalization, not for every fixed-size layout. - Pair it with
enlarge=falsewhen you want to avoid upscaling smaller source images. - Use
heightwhen the output should always be a specific height.
Common mistakes
- Expecting
min-heightto crop or pad. It resizes when the image is below the minimum. - Forgetting that upscaling can make small source images look soft.
- Using
min-heightwhen a fixed Height and Resizing Type would be clearer.
Related pages
Last updated at: May 9, 2026