There’s a tool I use to generate depth maps (grayscale images that denote depth using white as “no depth” and black as “as deep as it goes” and breaking up the layers in between into the number of grays the image uses) from STLs (meshes for, generally, 3D printing) so we can take our prototype 3D printed molds and reproduce them in aluminum using our fiber lasers (in theory, when everything is working correctly).

It’s a single web page, in which is some javascript that does the actual generation of the depth map, completely offline in your browser. It is super simple and it does the thing, so that’s what I’ve used since I found it.

But.

But it does this thing.

It adds a one pixel black line across the top and a one pixel black line down the left side of every PNG output it produces for me.

Like so:

@djsundog this is relevant to my interests (although what I have been idly looking for is a tool that does the opposite; takes a greyscale PNG and generates an STL)
@mayor https://fenrus75.github.io/FenrusCNCtools/javascript/stl2png.html - just run that backwards and you’re golden?
STL2PNG - javascript edition

@djsundog occurs to me that a "png to lithophane" tool would probably do the trick, and there seem to be a bunch of those

I do love a good "static JS on a static HTML page" app though