File netpbm-10.26.44-pnmtopng-transparent.patch of Package netpbm

--- converter/other/pnmtopng.c
+++ converter/other/pnmtopng.c
@@ -1328,7 +1328,7 @@
         computePixelWidth(PNM_FORMAT_TYPE(format), pnm_meaningful_bits, alpha,
                           NULL, &bitsPerPixel);
 
-        if (!pfP && bitsPerPixel == 1)
+        if (0/*!pfP && bitsPerPixel == 1*/)
             /* No palette can beat 1 bit per pixel -- no need to waste time
                counting the colors.
             */
@@ -1351,7 +1351,7 @@
                           "colormapped PNG", MAXCOLORS);
             } else {
                 /* There are few enough colors that a palette is possible */
-                if (bitsPerPixel <= paletteIndexBits(colors) && !pfP)
+                if (0/*bitsPerPixel <= paletteIndexBits(colors) && !pfP*/)
                     asprintfN(noColormapReasonP, 
                               "palette index for %u colors would be "
                               "no smaller than the indexed value (%u bits)", 
openSUSE Build Service is sponsored by