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

"CGBitmapContextCreate: unsupported parameter combination" when trying to print #39

Closed
rhohn94 opened this issue Aug 1, 2018 · 1 comment

Comments

@rhohn94
Copy link

rhohn94 commented Aug 1, 2018

The code that I am using is based on Ayiga's pull request, pull request #15 .

The error, however, comes from BRPtouchPrinter.print, and seems to be caused by bad parameters being passed to a call to CGBitmapContextCreate. Here's the exact error message that I get:

38171742_1876559235981706_8463269181737926656_n

Has anyone else encountered this? The image that I'm sending is ultimately derived from a base64 encoded (image/jpeg) that I get from an HTML canvas. I haven't changed any of the code that handles the base64 image data received from the Cordova side of the application.

I am printing via bluetooth., and I am testing this on an early-generation iPad Mini. The printer is a QL-820NWB. Aside from changing the default value for the label size, I have not adjusted any kind of configuration for the printer in the code.

@rhohn94 rhohn94 closed this as completed Aug 1, 2018
@gordol
Copy link
Owner

gordol commented Aug 1, 2018

the brother sdk requires a bitmap, not jpeg. if their native sdk can convert other formats, great, but i'm not sure...

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