Capture/save/export an image with CSS filter effects applied

前端 未结 2 1680
星月不相逢
星月不相逢 2020-12-10 02:37

I\'m tooling around to make a simple picture editor that uses CSS3 filter effects (saturation, sepia, contrast, etc.)

Making the picture editor is the easy part, how

2条回答
  •  庸人自扰
    2020-12-10 02:53

    I got your answer. I made this program, finally it's work.

    those step is :
    1. upload the image (JPG/PNG)
    2. convert to canvas
    3. custom with css filters.
    4. render using camanJS to save as image.
    5. done.

    you also can reset effect value by modifying value of filters to its default.

    good luck!

提交回复
热议问题