summaryrefslogtreecommitdiff
path: root/goo/PNGWriter.cc
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2017-03-04 10:54:29 +1030
committerAdrian Johnson <ajohnson@redneon.com>2017-03-04 10:54:29 +1030
commitcfaeeadbc642a297486481d9efd6068fd9ef7ea3 (patch)
tree162561acdee4c27926e2abff2a2b88a076010808 /goo/PNGWriter.cc
parent1b0653ce395242547b2b34b99034a19cd2d3ea6b (diff)
pdfimages: support 16bpc png and tiff images
bug 99988
Diffstat (limited to 'goo/PNGWriter.cc')
-rw-r--r--goo/PNGWriter.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/goo/PNGWriter.cc b/goo/PNGWriter.cc
index c9d5199d..99be021d 100644
--- a/goo/PNGWriter.cc
+++ b/goo/PNGWriter.cc
@@ -117,6 +117,10 @@ bool PNGWriter::init(FILE *f, int width, int height, int hDPI, int vDPI)
bit_depth = 8;
color_type = PNG_COLOR_TYPE_RGB;
break;
+ case RGB48:
+ bit_depth = 16;
+ color_type = PNG_COLOR_TYPE_RGB;
+ break;
case RGBA:
bit_depth = 8;
color_type = PNG_COLOR_TYPE_RGB_ALPHA;