Invert colors of an image in CSS or JavaScript

后端 未结 4 505
慢半拍i
慢半拍i 2020-12-12 15:53

How do I invert colors of an image (jpg/png..) in either css if possible or javascript?

Previous related questions don\'t give enough detail.

4条回答
  •  醉酒成梦
    2020-12-12 16:07

    For inversion from 0 to 1 and back you can use this library InvertImages, which provides support for IE 10. I also tested with IE 11 and it should work.

提交回复
热议问题