imgix APIs
Rendering API
Watermark Width

Watermark Width

mark-w

Specifies the watermark width. 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 width. The watermark will be mark-w pixels wide. 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 width of the watermark. For example, when mark-w is set to 1.0, the watermark will be displayed at 100% of its size. When the mark-w parameter is set to 0.5, the watermark will be displayed at half of its source width.

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.