Currently, stlearn.pp.tiling (link) saves image tiles as JPEG files using:
tile.save(out_tile, "JPEG")
With Pillow, as per the documentation, the default value of the JPG quality parameter is 75.
In some cases, it might be preferable to save tiles using a lossless image format such as PNG.
What about allowing users to save tiles as PNG images instead?
Currently,
stlearn.pp.tiling
(link) saves image tiles as JPEG files using:With Pillow, as per the documentation, the default value of the JPG
quality
parameter is 75. In some cases, it might be preferable to save tiles using a lossless image format such as PNG.What about allowing users to save tiles as PNG images instead?
I can submit a PR to add this feature.