imgix APIs
Rendering API
Watermark Height

Watermark Height

mark-h

Specifies the watermark height. This number can either be a positive integer or a float between 0.0 and 1.0, inclusive.

When the value is a positive integer greater than 1, the value is interpreted as a pixel height. The watermark will be mark-h pixels tall. The maximum value is 2000.

When the value is a float between 0.0 and 1.0, the value is interpreted as a ratio to the source height of the watermark. For example, when mark-h is set to 1.0, the watermark will be displayed at 100% of its size. When the mark-h parameter is set to 0.5, the watermark will be displayed at half of its source height.

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

If the mark-fit mode is set to clip or max, then the actual width and height may be equal to or less than the dimensions you specify.