-
Notifications
You must be signed in to change notification settings - Fork 83
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
Can you add more predefined filter like Sepia, GrayScale Etc #17
Comments
I will check it those day , and PR is also welcome |
Thanks you can use all these filter https://css-tricks.com/almanac/properties/f/filter/ same we use for grayscale |
Having an additional questions which the img with css filter can be translation into base64 to download the img as blob? |
is there anyone working on this? or should I do some work and make a PR? :D |
@Rohithzr Sorry for stagnant, I have been try for using css filter ~ which meaning we nor translation into base64 to download or just show . i want get some idea and PR is welcome, but share your idea before PR is aappreciate ! |
@Sunshine168 instead of using css filters, i would support manipulating the image's properties using jimp.
this loops through the image pixels and creates the sepia effect, hence does not lose quality but can be a bit intensive compared to css filters another method is to take a screenshot of the new image, hence losing the quality, this method is used in instagram and snapchat to add text and emojis to the image. for web, i support the first method and not the css method. |
@Rohithzr Nice! just go for it, i will follow up the progress of your work. |
@Sunshine168 one question, have you ever tested this library on React-Native ? |
@Rohithzr it did not supported in RN |
Here are some example of filter so we can use all below by passing props true and false
F1977
Amaro
Brannan
Earlybird
Hefe
Hudson
Inkwell
Lokofi
LordKelvin
Nashville
Normal
Rise
Sierra
Sutro
Toaster
Valencia
Walden
XproII
The text was updated successfully, but these errors were encountered: