imgix APIsRendering APISizeMaximum Width

Maximum Width

max-w

The maximum allowed width of the output image.

Must be an integer greater than 0. This parameter will only work if fit=crop is present.

This feature is particularly useful for horizontally-scrolling feeds that display user-uploaded images. By specifying a maximum width for each image, users are prevented from accidentally (or intentionally) breaking the user experience of the site or app by uploading incredibly wide, short images.

fit=crop&h=200&max-w=1200
Max width 1200px, not cropped
sandbox-demo
fit=crop&h=200&max-w=200
Max width 200px, cropped
sandbox-demo