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(server): separate quality for thumbnail and preview images #13006

Merged
merged 4 commits into from
Sep 28, 2024

Conversation

mertalev
Copy link
Contributor

@mertalev mertalev commented Sep 27, 2024

Description

It can be desirable to set the target quality differently between thumbnails and previews. Some admins might want to increase preview quality, but without making thumbnails unnecessarily larger. Others who mainly view the original image may wish to lower preview quality to save space.

This PR changes the config to have separate quality entries for thumbnails and previews. It also restructures the image settings to reflect the common settings between thumbnails and previews.

This is not a breaking change per se, but admins who set custom image settings in their config file will use the defaults until their config file is corrected. Admins who use the database via the admin UI are migrated over to the new config structure.

The image settings in the admin UI are now grouped by preview and thumbnail. I opted to set isOpen true for these accordions so they're expanded when first viewing without extra clicks.

Fixes #12886

How Has This Been Tested?

Tested by setting an extremely low quality for one output and an extremely high quality for another, verifying that refreshing thumbnails for an asset finished successfully, and that the two images are of very different quality.

image-settings

Copy link
Contributor

@jrasm91 jrasm91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@mertalev mertalev enabled auto-merge (squash) September 28, 2024 05:40
@mertalev mertalev merged commit 995f0fd into main Sep 28, 2024
35 checks passed
@mertalev mertalev deleted the feat/server-separate-image-quality branch September 28, 2024 06:01
Gon31069 added a commit to Gon31069/immich that referenced this pull request Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants