-
-
Couldn't load subscription status.
- Fork 4.6k
fix(blurhash): Use preview API to generate the previews #52360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(blurhash): Use preview API to generate the previews #52360
Conversation
548bfd7 to
952a6d3
Compare
952a6d3 to
5e47143
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment otherwise good!
aae841b to
009932f
Compare
|
psalm:update-baseline needed |
|
/backport to stable31 |
|
/backport to stable30 |
|
/backport to stable29 |
009932f to
15d4fb2
Compare
|
🧪 💥
|
15d4fb2 to
7a763b8
Compare
544943b to
1753b2c
Compare
This allows callers to use the API without increasing the disk usage. Example: blurhash generation, where we request a preview for all uploaded pictures, but don't want to necessarily store that preview. Signed-off-by: Louis Chemineau <louis@chmn.me>
1753b2c to
024f756
Compare
This allows to benefit from all the checks done by the preview API. This also use the newly introduced `cacheResult` argument to limit disk usage. Signed-off-by: Louis Chemineau <louis@chmn.me>
024f756 to
867be35
Compare
|
@artonge did you test this with |
No. By reading the code, I assume this would skip blurhash generation. Which would be expected as blurhashes are a kind of preview. |
It doesn't generate blurhash but also logs: IMO, this should be caught in |
1. feat(previews): Support in memory preview request
This allows callers to use the API without increasing the disk usage.
2. fix(blurhash): Use preview API to generate the previews
This allows to benefit from all the checks done by the API.
This also used the newly introduced
cacheResultargument to limit disk usage.