pkgsrc/print/podofo/patches/patch-src_doc_PdfImage.cpp
adam eea61746ba PoDoFo 0.9.4 was released today, after over two years of development and with the help of many new contributors.
As there are so many improvements, patches and fixes that made it into this release, we are not able to list them, so please stick with the svn log.
2016-08-01 13:39:34 +00:00

16 lines
594 B
C++

$NetBSD: patch-src_doc_PdfImage.cpp,v 1.3 2016/08/01 13:39:34 adam Exp $
Recognize TIFF images with alpha channel when using the photometric
colour tag.
--- src/doc/PdfImage.cpp.orig 2016-05-15 19:06:35.000000000 +0000
+++ src/doc/PdfImage.cpp
@@ -589,7 +589,7 @@ void PdfImage::LoadFromTiffHandle(void*
break;
case PHOTOMETRIC_RGB:
- if ( bitsPixel != 24 )
+ if ( bitsPixel != 24 && bitsPixel != 32 )
{
TIFFClose(hInTiffHandle);
PODOFO_RAISE_ERROR( ePdfError_UnsupportedImageFormat );