-
-
Notifications
You must be signed in to change notification settings - Fork 165
Open
Description
Thanks for this handy little library.
When running in node using node-canvas I'm wanting the result of the merge to be a buffer or a stream rather than a base64 encoded string. I think it would be possible to do this with an outputType option? The rules would be
- If not provided defaults to
dataURL - If running in browser, only
dataURLis a permitted output type - Options include:
dataURL,buffer,stream - If
streamthen based the canvas stream method is used based on mime typeimage/png->createPNGStreamimage/jpeg->createJPEGStreamapplication/pdf->createPDFStream- else error
I'm happy to help with this feature, if it will be accepted/merged. 😄
Eghizio and kudlav
Metadata
Metadata
Assignees
Labels
No labels