Open elnino710 opened 3 years ago
Hi! which image capture library did you use for this. I used react-native-view-shot on Android is perfect. But on ios it return strange base64 with multi new line charactor. So my printer can not print (COMMAND_NOT_SEND).
Hi AnLuubk. I also use the react-native-view-shot library, everything is fine but the printout is blurry as shown above. I have a discovery before I want to print with iOS, you print with the app provided with the machine (my printer is "nyear label") then the image will be normal, but I don't want to do this
Oh! i use nyear label too (NP100). i just adjusted the width 408px (% 8 == 0), it printed out but the quality is bad too (blur), i also had to remove all /\r\n/ in the base64 string before print (if not it return with COMMAND_NOT_SEND). I'm not sure but, I think the quality is bad is caused from base64 string return from ios
So have you solved the blur problem yet?
Not really good! Im trying to adjust the quality return from react-native-view-shot. But still waiting for a better solution
My QR code is blurred so I can't read it, it's not really a problem, as long as the QR code is printed I can read it. I will try your way
Hi @AnLuubk , I also use react-native-view-shot to capture image and when print that image on Android, image is blurred. Did you find a way to fix it ?
My experience, in PrintImageBleWriteDelegate
there is an NSThread sleepForTimeInterval
. Comment that line, and the blur will gone
Because the QR code printing failed, I switched to image printing, but I got this error The image is clear at the top (about 5cm) and blurry at the bottom
Can anyone help me. Thanks