News for hackers. Stuff that matters.
Re:Show HN: GradientMagic by perk on Sunday August 16, 2020 @01:40PM (#24179617)
Come to think of it, CSS isn't its strongest side. No support for filters I think. Maybe worth checking it out anyway.
Re:Show HN: GradientMagic by jordanmarshall on Sunday August 16, 2020 @01:52PM (#24179712)
I looked into it before, and I don't think html2canvas would work. IIRC the only way to get the gradients was using the screen capture API [1], which works, but requires users to click an authorization prompt before use.

[1] https://developer.mozilla.org/en-US/docs/Web/API/Screen_Capt...

Re:Show HN: GradientMagic by perk on Sunday August 16, 2020 @03:21PM (#24180428)
Hm. I've used image-screenshot [1] in the past together with html2canvas to get CSS filter support in screenshots. Don't know if it would work in your scenario though.

[1] https://www.npmjs.com/package/image-screenshot