ipx icon indicating copy to clipboard operation
ipx copied to clipboard

Add new modifiers for `opacity` and `brightness`

Open hacknug opened this issue 1 year ago • 1 comments

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 avatar Aug 30 '24 16:08 hacknug

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.

hacknug avatar Sep 02 '24 11:09 hacknug