w Image Width
The width of the output image. Must be a positive integer or a float between
w parameter is a float between
1.0, the value is interpreted as a ratio in relation to the source image size. For example, a
w parameter set to
1.0 will result in the same output image width as the input, whereas a
w value of
0.5 will result in an output image half the width of the input 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.
fit parameter is set to
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.