Commit Graph

8 Commits

Author SHA1 Message Date
12ea378b02 Photo uploader: reduce client memory usage.
To create inline thumbnails locally, the previous version of the photo uploader
used base64 representations of the local files to be uploaded. While this is
effective, it is a little wasteful. When uploading several photos at once, this
could even lead to the page becoming less responsive.

This commit changes the process such that the photos are actually resized on a
canvas, only using the local original as a buffer. Hence, only the resized
photo is retained in memory.
2020-02-08 20:35:26 +01:00
7f5ce1820d Split preview box creation from preview generation. 2017-11-09 17:00:35 +01:00
ddcc28aff6 Implement upload throttling: one file at a time. 2017-11-09 17:00:35 +01:00
790d5fc5d0 Uploading of new photos now fully working. 2017-11-09 17:00:35 +01:00
77a9cd5d53 Add mockup progress bars to uploads. 2017-11-09 17:00:35 +01:00
c13442cac6 Add label next to spinner to indicate what's happening. 2017-11-09 17:00:35 +01:00
c912c3327e Add spinner; retain preview image order. 2017-11-09 17:00:35 +01:00
6aaa21b176 WIP: new photo uploader. 2017-11-09 17:00:35 +01:00