You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, thanks for sharing this project. I am trying to use this lib for my project, and while micro service version works correct, this lib does not work for the same SVG.
SVG in question is this:
The source of problems is the first line with dimensions in pixels. When dimensions are in mm, it works, but it converts them to pixels somehow.
Most recent version of the lib returns this error:
Error: w and h must be numbers
at Jimp.throwError (/var/www/svgconvert/node_modules/@jimp/utils/dist/index.js:26:13)
at Jimp.scanQuiet (/var/www/svgconvert/node_modules/@jimp/core/dist/index.js:1301:30)
at Jimp.(anonymous function) [as scan] (/var/www/svgconvert/node_modules/@jimp/core/dist/index.js:1222:23)
at Potrace._processLoadedImage (/var/www/svgconvert/node_modules/potrace/lib/Potrace.js:1003:11)
at Jimp.<anonymous> (/var/www/svgconvert/node_modules/potrace/lib/Potrace.js:1046:14)
at Timeout._onTimeout (/var/www/svgconvert/node_modules/@jimp/core/dist/index.js:331:25)
at ontimeout (timers.js:482:11)
at tryOnTimeout (timers.js:317:5)
at Timer.listOnTimeout (timers.js:277:5)
to install the same libraries versions (not sure if I did all correct, though)
result is just a bit different
TypeError: Cannot read property 'bitmap' of undefined
at Potrace._processLoadedImage (/var/www/svgconvert/node_modules/potrace/lib/Potrace.js:1000:35)
at Jimp.<anonymous> (/var/www/svgconvert/node_modules/potrace/lib/Potrace.js:1046:14)
at Jimp.throwError (/var/www/svgconvert/node_modules/potrace/node_modules/jimp/index.js:85:44)
at /var/www/svgconvert/node_modules/potrace/node_modules/jimp/index.js:298:44
at exports.PNG.<anonymous> (/var/www/svgconvert/node_modules/pngjs/lib/png.js:81:7)
at Object.onceWrapper (events.js:315:30)
at emitOne (events.js:116:13)
at exports.PNG.emit (events.js:211:7)
at emitOne (events.js:116:13)
at module.exports.emit (events.js:211:7)
Hello, thanks for sharing this project. I am trying to use this lib for my project, and while micro service version works correct, this lib does not work for the same SVG.
SVG in question is this:
The source of problems is the first line with dimensions in pixels. When dimensions are in mm, it works, but it converts them to pixels somehow.
Most recent version of the lib returns this error:
I have tried this:
to install the same libraries versions (not sure if I did all correct, though)
result is just a bit different
at the same time microservice at https://micro-outline-stroke.now.sh/ returns result correctly.
I'm not sure where to search for the problem, can you give me any advice on this?
The text was updated successfully, but these errors were encountered: