Imgix APIsレンダリング APIブレンディングブレンドのアンカー

ブレンドのアンカー

blend-anchor

blend-anchor パラメーターは、明示的に指定した blend-x と blend-y が、ブレンドレイヤーのどの点に対応するかを選択します。デフォルトはレイヤーの左上の角です。

動作は mark-anchor とまったく同じです。値には center、bottom,right、top などの配置キーワードか、fx,fy の割合の組を指定します。割合では 0,0 がレイヤーの左上、1,1 が右下です。

デフォルト — レイヤーの左上が60%, 40%の位置に来ます
https://assets.imgix.net/docs/rendering-api/food-plate.jpg?w=600&h=400&fit=crop&blend=/imgix-logo.png&blend-w=0.3&blend-mode=normal&blend-x=0.6&blend-y=0.4
デフォルト

blend-anchor が読み取られるのは blend-x または blend-y が指定されている場合のみです。

座標を小数で記述すると 相対的な長さ になるため、レイアウトはどの出力幅でも保たれます。