Name a PNG file saved from Canvas using an “open with” dialog

后端 未结 3 638
醉酒成梦
醉酒成梦 2020-12-09 12:42

I am working with canvas and I would be able to save my Canvas to png.

By looking around, I discover the great toDataURL() function given by the W3C.

I am al

3条回答
  •  遥遥无期
    2020-12-09 13:15

    Well, in the real world web applications Hangrui Gao's solution is far from acceptable, according to

    http://caniuse.com/#feat=download

    you'll deny this feature to all IE, Safari, IOS Safari, Android's users.

    I think that given this limit in Canvas2Image, a better solution is to use some server side logic as explained here

    Linuxatico

提交回复
热议问题