0
我們正在實現圖片上傳中的裁剪功能。使用裁切功能,並將其初始上傳到s3
下面是事件的順序。
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,因爲它真的不需要。
我們的整體過程對於您看到此功能實現的體驗是否有意義?
非常感謝。