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

[Enhancement] different compression quality #1888

Open
KarelWintersky opened this issue Jun 20, 2023 · 5 comments
Open

[Enhancement] different compression quality #1888

KarelWintersky opened this issue Jun 20, 2023 · 5 comments
Labels
enhancement New feature or request Low Priority Low priority issues Project for volunteers The team has no plans to work on it (e.g. lack of time) but an external contribution is accepted

Comments

@KarelWintersky
Copy link

Is it possible to set different JPEG compression qualities for thumbnails of different sizes?

I.e. , for example

  • 90 for medium-sized tn
  • 80 for small-sized tn
  • 70 for thumb-sized tn

and define those settings at .env file?

@ildyria
Copy link
Member

ildyria commented Jun 20, 2023

no.

At the moment it is 90 (default) for any size.
You can set it in your advanced config page (settings -> more at the bottom).

I don't think the gain is significant enough to be considered.

@KarelWintersky
Copy link
Author

Also, webp does not allow define compression_quality.

@ildyria
Copy link
Member

ildyria commented Jun 20, 2023

Any thumbs are exported to jpeg.

@KarelWintersky
Copy link
Author

KarelWintersky commented Jun 20, 2023

I don't think the gain is significant enough to be considered.

avg 6-20% size diff between 80% quality jpeg and 90% quality jpeg...

on galleries with a large number of photos, the difference in file sizes can be significant

@ildyria
Copy link
Member

ildyria commented Jun 20, 2023

Well. I guess that's a project for volunteer then :)

Code to modify is mostly located here:
https://github.com/LycheeOrg/Lychee/tree/master/app/Image/Handlers

@ildyria ildyria added enhancement New feature or request Low Priority Low priority issues Project for volunteers The team has no plans to work on it (e.g. lack of time) but an external contribution is accepted labels Jun 20, 2023
@ildyria ildyria self-assigned this Dec 28, 2023
@ildyria ildyria removed their assignment Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Low Priority Low priority issues Project for volunteers The team has no plans to work on it (e.g. lack of time) but an external contribution is accepted
Projects
None yet
Development

No branches or pull requests

2 participants