我正在尝试缩放图像并将其从中心裁剪到特定大小。
基本上,如果我希望图像为 240x160(比例为 1.5:1)并且我的图像为 900x800(比例为 1.125:1)并使用以下设置:
filters:
- { name: geometry/scaledownonly, params: [240, 160] }
- { name: geometry/crop, params: [240, 160, 0, 0] }
Run Code Online (Sandbox Code Playgroud)
但我无法得到想要的结果。