mbrush icon indicating copy to clipboard operation
mbrush copied to clipboard

PNG file conversion with headless not working

Open leccyril opened this issue 1 year ago • 15 comments

i tried this part to convert QRcode png format to mbp :

Headless conversion
Goto /js/workers/mbc/
Run ./build.sh node (Before this step, you can modify the default parameters in mbc-head-node.js.)
Usage ./mbc-node.js image.png x.mbd (x is number. NodeJS needs to be installed.)

yello

and i have this error :

[cy@fedora mbc]$ ./mbc-node.js yello.png 0.mbd convert yello.png to 0.mbd mb init ready mbc conv: [ '100', '100', '40', '-i0', '-o0', '-w0', '-s2' ] mbc error mbc: UnableToOpenBlob 'ori.png': No such file or directory @ error/blob.c/OpenBlob/3497. mbc:err mbc quit 1 mbc error Error: FS error /home/cy/dev/projects/printer/print app/mb-master/mb_ser/js/workers/mbc/mbc-node.js:80

i tried in files to rename ori.png to my file but at the end i dont know what to do...

leccyril avatar Nov 15 '22 13:11 leccyril