AlloyTeam / AlloyCrop

The best and tiny size mobile cropping component - 做最好且最小的移动裁剪组件
https://alloyteam.github.io/AlloyCrop/
943 stars 145 forks source link

用 mqq api的话callback里可以拿到base64啊~~ #30

Open summertong opened 6 years ago

summertong commented 6 years ago

mqq.media.getPicture(param, callback)

@xiaoily520 @qkzzxb

Originally posted by @dntzhang in https://github.com/AlloyTeam/AlloyCrop/issues/8#issuecomment-327412816

summertong commented 6 years ago

image_src 可以直接传base64吗

dntzhang commented 6 years ago

可以啊

summertong commented 6 years ago

我用的ionic3 image-picker插件 从手机获取图片 得到base64,传给image_src 不管用

sherrylee2013 commented 6 years ago

let base64Image = 'data:image/jpeg;base64,' + imageData;