Imgix Tools
Imgix Force Aspect Ratio
通过 Aident Loadout 使用 Imgix Tools 的 Imgix Force Aspect Ratio。执行前查看输入、输出、设置、价格和风险。
写入操作风险等级 2/5API 密钥连接
服务提供商说明
Tool to force a target aspect ratio on an Imgix image. Use when a specific W:H frame is needed after choosing fit=crop or fit=fill. Example: 'ar=16:9&fit=crop&w=800' yields a 16:9, 800px-wide URL.
价格与限制
- 价格
- 免费操作
- 统一支付
- 暂不支持
输入
- Desired height in pixels (integer) or as a ratio (0.0-1.0). If omitted and 'w' is set, 'h' is auto-calculated.h
- Desired width in pixels (integer) or as a ratio (0.0-1.0). If omitted and 'h' is set, 'w' is auto-calculated.w
- Target aspect ratio in 'W:H' format. Use integers or decimals, e.g., '16:9', '4:3', '1.5:1'.arstring必填
- How the image fits the target ratio. Must be 'crop' or 'fill'.fitstring必填
- When 'fit=crop', controls alignment of the crop box. Defaults to center if unset.cropstring
- When 'fit=fill', determines how excess space is filled. Options: 'solid', 'blur', 'gradient', 'gen'.fillstring
- Path to the image on your Imgix source, e.g., 'images/photo.jpg'. Exclude leading slash.pathstring必填
- Color for solid fill, e.g., '#ff0000' or 'red'. Only used when 'fill=solid'.fill_colorstring
- Your Imgix source domain, e.g., 'my-source.imgix.net'. Exclude protocol ('http://' or 'https://').source_domainstring必填
可观察输出
- Data from the action executiondata必填
- Error if any occurred during the execution of the actionerrorstring
- Whether or not the action execution was successful or notsuccessfulboolean必填
使用此操作的技能
相关使用场景
尚未关联经过验证的相关使用场景。