Creates https://en.wikipedia.org/wiki/Deep_Zoom images from huge BMPs (1 and 8 bit) and PNGs (1-32 bit).
Published for scala 2.13, available on maven central https://repo1.maven.org/maven2/io/github/olegych/scala-dzi_2.13/
For example usage see tests at https://github.com/OlegYch/scala-dzi/blob/master/src/test/scala/DZITest.scala
To tune performance/memory usage run https://github.com/OlegYch/scala-dzi/blob/master/src/test/scala/DZIBench.scala with your sample inputs.