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

Add new modifiers for opacity and brightness #240

Open
1 task
hacknug opened this issue Aug 30, 2024 · 1 comment
Open
1 task

Add new modifiers for opacity and brightness #240

hacknug opened this issue Aug 30, 2024 · 1 comment

Comments

@hacknug
Copy link

hacknug commented Aug 30, 2024

Describe the feature

I would like to propose adding a couple new modifiers for opacity and brightness (and probably background too as a side-effect of adding the first to avoid limiting the output to PNG).

Right now I'm using CSS to achieve the desired output (via tailwind's opacity-75 brightness-125) but that messes with the color for ::selection which is something that triggers my OCD lol

I know I could modify the displayed image on any image editor but I thought this could be something useful to add to ipx so others can benefit of the changes.

Not sure how viable is this. Lmk if I can help in any way 👍

Additional information

  • Would you be willing to help implement this feature?
@hacknug
Copy link
Author

hacknug commented Sep 2, 2024

The requested functionality seems to be available in imgproxy via the brightness and colorize options.

colorize is basically the equivalent of my proposed solution with opacity and background, only using an overlay instead of an underlay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant