Commit 43eb06b
committed
feat(compression): compressed metadata images
When the MetadataImageService gets a request, try and fetch the image
form an in memory cache. If not present, fetch from Supabase and
compress the image using sharp.
Opted for compressions with webp as that should be nice for web images.
Proof of concept1 parent 12038fc commit 43eb06b
File tree
3 files changed
+333
-11
lines changed- src/services
3 files changed
+333
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| 75 | + | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| |||
0 commit comments