2014年4月3日
摘要: 原理 用 canvas的 toDataURI (type , int) 如果type参数的值为image/jpeg或image/webp,则第二个参数的值如果在0.0和1.0之间的话,会被看作是图片质量参数dataURI转 blob的代码是 copy 来的压缩代码/*common*/var canvasSupported = isCanvasSupported()function dataURItoBlob(dataURI) { // convert base64 to raw binary data held in a string var byteString ... 阅读全文
posted @ 2014-04-03 11:35 雨弓 阅读(22835) 评论(9) 推荐(0) 编辑