How to save image from canvas with CSS filters

后端 未结 4 1675
失恋的感觉
失恋的感觉 2020-12-02 01:09

I need to save an image after using CSS filters on the client-side (without using a backend). What I have so far:

  1. Use CSS filters
  2. Co
4条回答
  •  萌比男神i
    2020-12-02 01:37

    CSS filters applied to the canvas will not be applied to the image that is produced. You either need to replicate the filters in canvas or rather re apply the same filters to the generated image.

    Try putting the generated image data into the source of an img tag & apply the same filters.

提交回复
热议问题