Imgix APIsRendering APIBlendingBlend Height

Blend Height

blend-h

Sets the height of the overlay image.

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

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

Note: blend-h 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-h=100 — 100 pixels tall
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-h=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-h change the output as you type.