react-native-image-marker icon indicating copy to clipboard operation
react-native-image-marker copied to clipboard

makeText saveFormat :'base64' ios get data crash

Open liuhaiqing12 opened this issue 4 years ago • 4 comments

Describe the bug ImageMarker makeText saveFormat:'base64' ios get base64 data crash

ImageMarker.markText({ src: image.path, text: this.state.locationAddress, position: 'topLeft', color: '#FFFFFF', // fontName: 'Arial-BoldItalicMT', fontSize: 148, scale: 1, quality: 100, saveFormat: 'base64' }).then((res) => { console.log("the path is", res) }).catch((err) => { console.log(err) })

Versions: "react-native": "0.59.5", "react-native-image-marker": "^0.6.1",

liuhaiqing12 avatar Nov 21 '19 03:11 liuhaiqing12

hello, can you show me more details about this issue? eg. error stack trace 你好,能贴出具体错误来吗?我这边 demo 跑起来好像都没问题

JimmyDaddy avatar Nov 21 '19 10:11 JimmyDaddy

没有报错信息,打印返回的base64信息,特别多的信息返回,APP直接无法操作

liuhaiqing12 avatar Nov 22 '19 01:11 liuhaiqing12

那就是图片太大了吧。。。。崩溃应该有错误栈的吧。

JimmyDaddy avatar Nov 22 '19 01:11 JimmyDaddy

以下是添加文字之前返回的信息 { exif: null, filename: 'IMG_0002.JPG', path: '/Users/kk/Library/Developer/CoreSimulator/Devices/DA87FBBE-216A-42E3-8A11-6E14A8C91A98/data/Containers/Data/Application/2C34293E-94C5-4F08-BF12-028F1509BE63/tmp/react-native-image-crop-picker/247289AC-B060-4057-BF33-646BB64E0DAE.jpg', height: 2848, width: 4288, data: null, modificationDate: '1441224147', localIdentifier: 'B84E8479-475C-4727-A4A4-B77AA9980897/L0/001', size: 309786, sourceURL: null, mime: 'image/jpeg', cropRect: null, creationDate: '1255122560' }

liuhaiqing12 avatar Nov 22 '19 02:11 liuhaiqing12