1
0
Fork 0

web: manage: Resize images in the browser #4

Open
opened 2020-06-09 22:37:38 +08:00 by ambrose · 1 comment

To research, the performance of:

To research, the performance of: * In browser: * `libvips` (need to compile for WASM) * `mozjpeg` (https://squoosh.app/) * `libwebp` (https://squoosh.app/) * Server side: * `libvips`, in Go
Poster
Owner

Image resizing in the browser could reduce the complexity of the backend, at the expense of preventing rare clients from using the site.

Initial tests conclude equivalent performance in mobile browsers.

We can buffer these thumbnails inside IndexedDB as an upload queue, so a page refresh will not require regenerating these thumbnails.

All in a service worker.

Image resizing in the browser could reduce the complexity of the backend, at the expense of preventing rare clients from using the site. Initial tests conclude equivalent performance in mobile browsers. We can buffer these thumbnails inside IndexedDB as an upload queue, so a page refresh will not require regenerating these thumbnails. All in a service worker.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: photos/photos#4
There is no content yet.