我见过很少的演示,但不像Google+在Google+,如果我们上传封面照片,然后他们使限制最小的可耕种面积取决于上传的图像大小和纵横比,我们不能使它变小。任何人都知道如何根据以下要点获得最小宽度和高度。
如需更多信息,请查看Google+封面图片裁剪风格。
下面是一些演示,但我正在寻找。
http://deepliquid.com/projects/Jcrop/demos/tutorial5.html
http://picturecut.tuyoshi.com.br/
提前谢谢你的帮助!
发布于 2015-08-03 05:27:45
经过长时间的等待,我应用了简单的逻辑,它对我来说是有天赋的。
var min_crop_width = (Original_Width / 100) * 83.5; // Minimum percentage
var min_crop_height = (min_crop_width / 5) * 1; // Your Standard Ratio...
min_crop_width = (min_crop_height * 5) / 1; // Your Standard Ratio...谢谢!
https://stackoverflow.com/questions/31655859
复制相似问题