Enable saving 32 bits floating point TIFF image with rt-cli (see #2357)

This commit is contained in:
Hombre
2018-05-06 18:50:42 +02:00
parent a6f82d0212
commit 5ac11ef1b9
2 changed files with 9 additions and 4 deletions

View File

@@ -1026,6 +1026,9 @@ int ImageIO::savePNG (Glib::ustring fname, volatile int bps)
if (bps < 0) {
bps = getBPS ();
}
if (bps > 16) {
bps = 16;
}
png_set_IHDR(png, info, width, height, bps, PNG_COLOR_TYPE_RGB,
PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_BASE);