netpbm/netpbm-10.26.22-pnmtopng-transparent.patch

21 lines
958 B
Diff

--- converter/other/pnmtopng.c
+++ converter/other/pnmtopng.c
@@ -1322,7 +1322,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.
*/
@@ -1345,7 +1345,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)",