add ability to convert a directory of tile files with XYZ structure
This provides the ability to generate a PMTiles archive from a directory of tiles directly, wihtout having to first create a PMTiles archive.
See https://github.com/protomaps/PMTiles/discussions/519
Fix for hard coded png
path := filepath.Join(input, fmt.Sprintf("%d", z), fmt.Sprintf("%d", x), fmt.Sprintf("%d.%s", y, tileFormat))
Thanks for tackling this feature. Overall I think we need to depend on necessary metadata existing in a metadata.json or equivalent, see this comment on how this was implemented in the python pmtiles package:
https://github.com/protomaps/PMTiles/issues/338#issuecomment-2566336593
I know Tippecanoe outputs a metadata.json to directory outputs, maybe we ought to demand that the user author a metadata.json for this directory conversion to work simply (otherwise we would need to support N number of arbitrary formats, since AFAIK there is no standardization)?
A integration test for creating an archive from a directory would be nice too