imgix APIsRendering APISizeImage Width

Image Width

w

The width of the output image. Primary mode is a positive integer, interpreted as pixel height. The resulting image will be w pixels wide.

A secondary mode is a float between 0.0 and 1.0, interpreted as a ratio in relation to the source image size. For example, a w value of 0.5 will result in an output image half the width of the source image.

If only one dimension is specified, the other dimension will be calculated according to the aspect ratio of the input image. If both width and height are omitted, then the input image’s dimensions are used.

If the fit parameter is set to clip or max, then the actual output width may be equal to or less than the dimensions you specify.

Note: The maximum output image size on imgix is 8192×8192 pixels. All output images will be sized down to accommodate this limit.

If you’d like to resize using only w, please use fit=clip to ensure that the other dimension will be accurately calculated.