add snap to worker and worker image processing

This commit is contained in:
Stewart Allen 2020-04-15 21:44:37 -04:00
commit 2210b16530
6 changed files with 16457 additions and 3 deletions

View file

@ -51,6 +51,11 @@ let gs_kiri_sla = exports;
});
}
let b64 = atob(currentSnap);
let bin = Uint8Array.from(b64, c => c.charCodeAt(0));
let img = new png.PNG().parse(bin);
console.log({img})
SLICER.sliceWidget(widget, {
height: process.slaSlice || 0.05
}, function(slices) {