Looking to utilize the imageToZ64()
function within the zpl-image module.
After installing it with: npm install zpl-image
I attempted importing it using:
import './../../../node_modules/zpl-image';
However, when trying to use the function like this let res = imageToZ64(canvas);
I encountered an issue: Uncaught (in promise) ReferenceError: imageToZ64 is not defined
I also experimented with importing it in a different way:
import { imageToZ64 } from './../../../node_modules/zpl-image/zpl-image';
The problem arises because this function relies on other functions from pako.js, which is another JavaScript file within zpl-image. My question is, how can I import the module in a manner that grants me access to all functions?