图片的最小宽度应为300
,高度应按比例缩放。
假设用户上传了尺寸为5ooX850
的图像,我将使用
Img.set({
scaleX: 300 / Img.width,
});
但是如何根据 width
来调整图片的 height
?
图片的最小宽度应为300
,高度应按比例缩放。
假设用户上传了尺寸为5ooX850
的图像,我将使用
Img.set({
scaleX: 300 / Img.width,
});
但是如何根据 width
来调整图片的 height
?