I'm looking to create XYZ tiles for use in leafletjs with nodejs. Previously I've been creating my tiles using this python library (gdal2tiles).
I was wondering if anyone had yet written a nodejs equivalent?
I'm looking to take a single png image and specify the zoom range for the tiles to generated at, min zoom probably defined by log2(max(width, height)/tilesize)
Ideally each zoom range could be created by an independent process as I'd like to spin up a separate AWS lambda instance for each zoom level and upload the tiles to an S3 bucket in parallel.
How do I generate these tiles in JS rather than Python where I lack the knowledge to edit?