Sepia and Invert Effects work but why not the rest?
See original GitHub issueHi, 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.
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
Sepia filter inverting - python - Stack Overflow
An interesting question. The answer may be a little disappointing: a sepia filter is not reversible in theory, or in practice. Theory.
Read more >CSS3 filter effects: Grayscale, invert, sepia, and more
The invert filter effect reverses the hue, saturation, and brightness values of the content of the object and is expressed as a percentage....
Read more >How to Create the Invert Effect in Adobe Premiere Pro
The Invert effect is a simple way to make changes in your footage. This is particularly useful if you want to change the...
Read more >Half Sepia - Photoshop Tutorials
In this tutorial, you'll learn how to add a sepia tone ... Check and uncheck the Invert checkbox to find the effect you...
Read more >filter - CSS: Cascading Style Sheets - MDN Web Docs - Mozilla
The filter CSS property applies graphical effects like blur or color shift to an element. Filters are commonly used to adjust the rendering ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
threshold
has 2 arguments,canvas
andthreshold
, where you’d normally dothreshold(canvas, 140)
in a functional way, you’d do.process(threshold, 140)
instead.I did a test, please see the post in #342