Skip to content

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

@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
@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

4 participants