Imgix APIsRendering APIBlendingBlend Width

Blend Width

blend-w

Sets the width of the overlay image.

This operation occurs after your initial image has been resized. Values can range from 0 to the width of the overlay image, and can be larger than the width of the base image if desired.

When the value is a positive integer greater than 1, the value is interpreted as a pixel width. When the value is a float between 0.0 and 1.0, the value is interpreted as a ratio to the resized base image width. Parameter blend-fit will control how the overlay image is fit to its blend-w. Use blend-w[N] to style a specific additional blend layer — styles do not inherit across blend layers.

Note: blend-w is not applicable to color or text overlays—color overlays apply to the entire image, and text overlay padding can be controlled with the txt-pad parameter.

blend-w=100 — 100 pixels wide
https://assets.imgix.net/examples/bluehat.jpg?w=600&h=400&fit=crop&blend=https%3A%2F%2Fassets.imgix.net%2Fexamples%2Fclouds.jpg&blend-fit=clamp&blend-mode=normal&blend-align=middle,center&blend-w=100
100

Try it on your own images

Open the sandbox in your imgix dashboard to build a URL against one of your own sources and watch blend-w change the output as you type.