我们正在对我们的图片上传实施裁剪功能。
以下是事件的顺序。
1a)We call Filepicker.pick method to upload file to filepicker,
1b)Then filepicker uploads it to s3.
2a)Then we call filepicker.stat method to get dimensions.
2b)Then we call filepicker.convert to get small preview image and set that in crop dialog on the user end.
3a)When user adjusts the cropping area using jquery, we capture the dimensions.
3b)Then when user presses the crop button, we call filepicker.crop to get the cropped image.
4a)After that we call filepicker.convet to get 3 sizes. Thumb, small, medium.
5a) Then we move these images to S3 upon save on the user end.
我们的最终目标是让我们在上传/裁剪文件时的用户体验尽可能顺畅和快速。目前这是一个挑战,整个过程很慢。所以我们正在尝试消除步骤 1b,因为它实际上是不需要的。
我们的整个过程在您看到此功能实现的经验中是否有意义?
非常感谢。