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

feat(Assets): Generate & Use thumbnails for assets #1524

Merged
merged 3 commits into from
Dec 4, 2024
Merged

Conversation

Kruptein
Copy link
Owner

When browsing assets in the asset manager, the full images are used as that's the only data we currently have.

This can become quite heavy if a lot of images are shown.

This PR adds support for thumbnails which are 200x200 in size. They are generated in webp and jpeg formats and are stored in the new special thumbnails folder in the assets directory. (default is server/static/assets/)

The first server boot after this change will start a background task to generate thumbnails for all existing assets. This might spit out some errors for some assets that could not be converted for some reason. For those assets the full image will be used as a fallback when showing assets. The main reasons for this to fail is that either the image on disk no longer exists or that the image is too big.

@Kruptein Kruptein merged commit b75caee into dev Dec 4, 2024
6 checks passed
@Kruptein Kruptein deleted the feature/thumnails branch December 4, 2024 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant