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

Added filter support. Added color space conversion. #1763

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Prindl
Copy link

@Prindl Prindl commented Feb 25, 2019

Added basic support for the following filters:

  • brightness

  • contrast

  • grayscale

  • hue-rotate

  • invert(incomplete)

  • opacity

  • saturate

  • sepia

Single filters work quite well overall.
Combining several filters still needs some improvement.
The idea is to draw the image on the canvas and then redraw it with the filters applied.
However, getImageData() gets all the pixels in the area, which means if border-radius has a value, the filters will also apply on the background there.

@sho-87
Copy link

sho-87 commented Jan 27, 2020

@Prindl any updates to this?

It is not necessary.
@boutils
Copy link

boutils commented Jul 30, 2020

I would love to see this PR merged. Any updates ?

@ggonmar
Copy link

ggonmar commented Feb 4, 2021

Could someone resolve this conflicts and merge?????

@supkam
Copy link

supkam commented Feb 14, 2023

Can I request at least add basic support grayscale filter?

@woollsta
Copy link

I think this'll need a rewrite. The library has been refactored into Typescript since this was authored and its likely the flow has changed.
#1828

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.

None yet

6 participants