Skip to content
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: don't persist previews used during blurhash generation - take 2 #46864

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

st3iny
Copy link
Member

@st3iny st3iny commented Jul 30, 2024

Summary

When an instance is updated to 29 or 30, a blurhash is generated for every image in the background. For performance reasons, the blurhash generator requests a scaled preview instead of the full image. On large instances this is a problem because a preview will be generated and persisted for every image on the server.

Now, the preview is generated on the fly and not persisted to disk.

A cleaner alternative to #46864.

Checklist

@st3iny st3iny added this to the Nextcloud 30 milestone Jul 30, 2024
@st3iny st3iny self-assigned this Jul 30, 2024
@st3iny st3iny force-pushed the fix/dont-persist-blurhash-preview-2 branch from 644f795 to 82bd502 Compare July 30, 2024 07:07
@st3iny
Copy link
Member Author

st3iny commented Jul 30, 2024

/backport to stable29

Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
@st3iny st3iny force-pushed the fix/dont-persist-blurhash-preview-2 branch from 82bd502 to 08c785f Compare July 30, 2024 07:09
@st3iny st3iny changed the title fix: don't persist previews used during blurhash generation fix: don't persist previews used during blurhash generation - take 2 Jul 30, 2024
@blizzz blizzz mentioned this pull request Jul 30, 2024
@kesselb
Copy link
Contributor

kesselb commented Jul 30, 2024

@blizzz blizzz mentioned this pull request Aug 1, 2024
@st3iny st3iny merged commit abd7514 into master Aug 1, 2024
169 checks passed
@st3iny st3iny deleted the fix/dont-persist-blurhash-preview-2 branch August 1, 2024 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ☑️ Done
Development

Successfully merging this pull request may close these issues.

[Bug]: Automatic (not on-demand) preview generation fills disk
3 participants