diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2017-03-04 10:54:29 +1030 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2017-03-04 10:54:29 +1030 |
commit | cfaeeadbc642a297486481d9efd6068fd9ef7ea3 (patch) | |
tree | 162561acdee4c27926e2abff2a2b88a076010808 /goo/PNGWriter.cc | |
parent | 1b0653ce395242547b2b34b99034a19cd2d3ea6b (diff) |
pdfimages: support 16bpc png and tiff images
bug 99988
Diffstat (limited to 'goo/PNGWriter.cc')
-rw-r--r-- | goo/PNGWriter.cc | 4 |
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; |