0

我们正在对我们的图片上传实施裁剪功能。

以下是事件的顺序。

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,因为它实际上是不需要的。

我们的整个过程在您看到此功能实现的经验中是否有意义?

非常感谢。

4

1 回答 1

0

为了进行必要的处理,文件必须以某种形式在线存在。如果图像是从 facebook、Dropbox 等中提取的,则不会将其上传到 S3。但是,如果文件是本地文件,则必须先将其上传到 S3 才能进行处理,因此无法绕过此步骤。

于 2013-02-07T18:30:06.920 回答