Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有用户上传需要裁剪的高分辨率图像。但是,当他们裁剪图像时,我会在浏览器上显示缩略图或调整大小的图像(更小),然后他们会在调整大小的图像上选择裁剪。我想知道如何使用调整后图像中的这些尺寸并将其应用于原始高分辨率图像?
获取为裁剪缩略图返回的坐标并缩放它们:
full_crop = thumb_crop * full_size / thumb_size