Min Width
Use the min-width transformation to ensure a delivered image variant is at least a target width.
Overview
min-width only changes the output when the source image is narrower than the requested minimum. It is useful when your app accepts small uploads but needs a minimum delivery size for some placements.
Syntax
| Field | Value |
|---|---|
| Canonical parameter | min-width |
| Aliases | mw, min_width |
| Accepted values | Integer pixels from 1 through 8192 |
Example
https://cdn.imgwire.dev/{organization_id}/{environment_id}/{image_id}?min-width=1800
image.url({
'min-width': 1800,
format: 'auto',
quality: 'auto',
});
imgwire images url img_123 --min-width 1800 --format auto --quality auto
Live examples
| Original width | Minimum width 1800 |
|---|---|
Best practices
- Use
min-widthwhen uploads vary and you only want to resize undersized images. - Pair it with
enlarge=falsewhen source quality matters more than meeting the minimum. - Use
widthwhen every variant should be delivered at the same planned width.
Common mistakes
- Expecting
min-widthto resize already-wide images. - Upscaling small user uploads into large UI placements without checking quality.
- Using
min-widthwhere a fixed Width is easier to reason about.
Related pages
Last updated at: May 9, 2026