canvas.toDataURL does not result in image/jpeg data

后端 未结 2 1269
广开言路
广开言路 2021-01-05 08:33

I am trying to save html5 canvas data to server using base64 + phonegap 2.5.

platforms : windows phone 7 and 8 , Android and IOS.

Basic

2条回答
  •  一整个雨季
    2021-01-05 09:09

    Only image/png is supported by old browsers (WebKits) and this is the only codec you can rely to be present. img/jpeg get added later on and is still not supported by many browsers.

    For Android 2.3: try if you can do it in vanilla browser. If it works there then it is a PhoneGap issue and should be reported to the authors.

提交回复
热议问题