HomePhabricator
Diffusion Comm 83822bdaeeb7

[web] Add hook to generate placeholder image

Description

[web] Add hook to generate placeholder image

Summary:
This diff adds a hool that generates placeholder data URL from given thumbhash string. It also decrypts the thumbhash if encryption key is provided.

The operation is synchronous for non-encrypted thumbhash and asynchronous for encrypted ones.

Depends on D7900

Test Plan: Tested together with the next diff.

Reviewers: ashoat, atul, ginsu, inka

Reviewed By: ashoat

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D7901

Details

Provenance
bartekAuthored on May 21 2023, 6:52 AM
Reviewer
ashoat
Differential Revision
D7901: [web] Add hook to generate placeholder image
Parents
rCOMMc6c65354ee64: [web] Refactor Mutlimedia to function component
Branches
Unknown
Tags
Unknown