[web] Generate thumbhash during photo upload
Summary:
This diff adds thumbhash creation step when uploading photos on web. The approach here is way simpler than on native. This works for both encrypted and non-encrypted media. The canvas code is based on this example code.
In contrast to native, we can use thumbhash npm package to avoid copying their code. Adding @ashoat because of this dependency
Test Plan: Selected a photo to upload on web, and verified in TablePlus that the upload contains the thumbHash string in the extras column. For encrypted media, it's significantly longer because it includes IV and other encryption metadata.
Reviewers: atul, ashoat
Reviewed By: ashoat
Subscribers: ashoat, tomek
Differential Revision: https://phab.comm.dev/D7811