Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

makeText saveFormat :'base64' ios get data crash #59

Closed
liuhaiqing12 opened this issue Nov 21, 2019 · 4 comments
Closed

makeText saveFormat :'base64' ios get data crash #59

liuhaiqing12 opened this issue Nov 21, 2019 · 4 comments

Comments

@liuhaiqing12
Copy link

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",

@JimmyDaddy
Copy link
Owner

JimmyDaddy commented Nov 21, 2019

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

@liuhaiqing12
Copy link
Author

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

@JimmyDaddy
Copy link
Owner

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

@liuhaiqing12
Copy link
Author

以下是添加文字之前返回的信息
{ 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' }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants