Commit graph

24 commits

Author SHA1 Message Date
Manav Rathi f5eb997768
tsc 2024-05-10 14:34:24 +05:30
Manav Rathi 3dae87abaa
Handle files with an heic extension that are not actually heic 2024-05-10 11:52:21 +05:30
Manav Rathi ebb05e4bdf
HEIC convert 2024-05-09 21:17:47 +05:30
Manav Rathi 8167e353f0
Make tsc happy 2024-05-09 20:45:41 +05:30
Manav Rathi 7d56230b91
Move down 2024-05-09 20:44:52 +05:30
Manav Rathi 64572d5880
Move back 2024-05-09 14:35:01 +05:30
Manav Rathi 72fa6c653f
Move to @/media 2024-05-09 14:23:30 +05:30
Manav Rathi 34c664ac33
Move to @/media 2024-05-03 18:37:57 +05:30
Manav Rathi 85d0a72df3
Rework the stream handling 2024-04-28 11:32:23 +05:30
Manav Rathi 17275ed29d
Inline 2024-04-27 18:03:09 +05:30
Manav Rathi c76d12f4a7
Document based on current understanding 2024-04-25 12:52:42 +05:30
Manav Rathi c13812c31a
Move to library 2024-04-25 12:46:21 +05:30
Manav Rathi 5324d805c6
Rejig type 2024-04-25 09:56:25 +05:30
Manav Rathi 7f3d9690c0
exactType => extension 2024-04-24 22:02:46 +05:30
Manav Rathi e03a0a09d4
lowercase extension 2024-04-24 21:28:30 +05:30
Manav Rathi af79db90d0
Doesn't work for us yet
Current version throws
    Module build failed: UnhandledSchemeError: Reading from "node:buffer" is not handled by plugins (Unhandled scheme).
    Webpack supports "data:" and "file:" URIs by default.
    You may need an additional plugin to handle "node:" URIs.

See: https://github.com/sindresorhus/file-type/issues/502

There are ways around by using polyfills, e.g.
- https://stackoverflow.com/questions/76500464/issues-while-using-gradio-client-in-next-js/76522223#76522223
- https://github.com/vercel/next.js/discussions/33982

but since no functional changes in the detection that impact us have been made,
stay back at the old version for now.
2024-04-24 18:44:09 +05:30
Manav Rathi 38e18f29bd
Update file-type dependency and move it to its correct package.json
Refs:
- https://github.com/sindresorhus/file-type/releases/tag/v17.0.0

Went through the release notes since v16 to check that none of the MIME types we
care about have changed.
2024-04-24 18:27:30 +05:30
Manav Rathi f3c798148c
type-detect 2024-04-24 18:06:52 +05:30
Manav Rathi 58d2670171
Prune 2024-04-24 11:29:54 +05:30
Manav Rathi 184ba91a2d
Refactor 2024-04-17 12:34:00 +05:30
Manav Rathi 27a2b087c7
Elaborate 2024-04-17 12:01:54 +05:30
Manav Rathi 2d5ab044ee
Docs 2024-04-17 11:55:07 +05:30
Manav Rathi 637d830f19
Replace encodelivephoto 2024-04-17 11:51:35 +05:30
Manav Rathi 4b9446a9b0
Create a package to share code between photos and cast 2024-04-17 09:47:28 +05:30