-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Sepia and Invert Effects work but why not the rest? #341
Comments
It is possible that they changed the behaviour of the global composite operation, I'd have to check, though.
For non-transparent images, you have Also, to prettify your code, instead of this: let canvas = new Canvas(width, height)
.addImage(avatar, 0, 0, width, height)
canvas = grayscale(canvas)
.toBuffer(); You can do this: const canvas = new Canvas(width, height)
.addImage(avatar, 0, 0, width, height)
.process(grayscale)
.toBuffer(); Those utils that have more than one argument (e.g. |
Alright thanks, i've tested out silhouette, yes. It works on transparent images. Threshold, no not really for me. Thanks for letting me know of the cleaner code. Yes, I am making my existing Image Gen commands from my Discord Bot to the image gen website. Was also not really able to understand the extra arguments for |
Have you tried more images in threshold? If almost the entire surface of the image is pastel, threshold simply cannot work due to how its formula works. For example |
I can confirm
Maybe for a |
Whats working for me:
the rest aren't working unfortunately |
I'm honestly surprised blur worked for you, given that it did not when I tested it. Can you list those that aren't working, so I can check them as soon as possible, please? |
Sure Kyra, I can do that for you :) If you're wondering about the Blur, yes, it barely blurs and the args is best set at 9 to actually see the blur. Therefore you can pretty much see a difference. Got my Logo icon I made to compare with the blur effect https://imgur.com/a/GpH1UYQ The working ones:
Broken for me:
Perhaps, I got some suggestions for more effects that you can possibly make. If you like me to suggest, I can either in the support server or here will be good |
I might drop |
Hey, do you want to try #342? I hopefully fixed all the things:
|
I did a test, please see the post in #342 |
Hi, I'm developing an Image Gen API website and making effects endpoints such as Grayscale, Sepia, Silhouette etc.
I could be wrong here but for some reason, only my Sepia and Invert endpoints are working, when trying to require grayscale, blur, brightness, darkness and the rest. They either result in a black or white generated image. See screenshots and code for what I mean.
Removed links to avoid people copying code since issue was fixed - sorry
for the Grayscale code.
for Sepia code.
Screenshots: https://imgur.com/a/PIxvdls
Using
3.1.0
as the version.The text was updated successfully, but these errors were encountered: