* pnmtopng: Fix bug: Defaults to no filters. Should be all filters. Effect is larger PNG output. Broken after Netpbm 10.26 (January 2005) but no later than Netpbm 10.35 (August 2006). * pnmtopng: Fix bug: Doesn't allow multiple filter options. Broken after Netpbm 10.26 (January 2005) but no later than Netpbm 10.35 (August 2006). * pnmcrop: Don't allow -borderfile with -reportXXX. It doesn't work. * pnmcrop: fix bug: -bgcolor doesn't work. Always present (-bgcolor was introduced in Netpbm 10.86 (March 2019)). * pnmcrop: fix bug: incorrect identification of background with -bgcolor and PBM or PGM image. Always present (-bgcolor was introduced in Netpbm 10.86 (March 2019)). * Add pamfind. * Add pambrighten. * Add pamhue. * pnmcrop: Add -bg-color, bg-corner, -reportfull, -reportsize, -blank-image . * pamtopng: Add -interlace . * pamenlarge: Add -scale, -xscale, -yscale . * pamenlarge: Much faster for PBM with xscale factor above 10; slightly faster for xscale factor 2-10. * pamfile: Add -machine and -size . * pamscale: Add -reportonly * pamstretch-gen: Add -quiet, -plain. * pamstretch-gen: Use -dropedge on the 'pamstretch' piece for better looking output. * pamstretch: Accept scale factor of 1 as a parameter (already OBS-URL: https://build.opensuse.org/package/show/graphics/netpbm?expand=0&rev=100
60 lines
1.9 KiB
Diff
60 lines
1.9 KiB
Diff
Index: netpbm-10.86.3/converter/other/pngx.c
|
|
===================================================================
|
|
--- netpbm-10.86.3.orig/converter/other/pngx.c 2019-05-14 09:27:19.536073096 +0200
|
|
+++ netpbm-10.86.3/converter/other/pngx.c 2019-05-14 09:27:21.976084785 +0200
|
|
@@ -368,6 +368,7 @@ pngx_srgbIntentDesc(pngx_srgbIntent cons
|
|
case PNGX_ABSOLUTE_COLORIMETRIC: return "ABSOLUTE_COLORIMETRIC";
|
|
}
|
|
assert(false);
|
|
+ return NULL;
|
|
}
|
|
|
|
|
|
@@ -383,6 +384,7 @@ const libpngSrgbIntentCode(pngx_srgbInte
|
|
}
|
|
|
|
assert(false); /* All cases above return */
|
|
+ return -1;
|
|
}
|
|
|
|
|
|
Index: netpbm-10.86.3/editor/pbmreduce.c
|
|
===================================================================
|
|
--- netpbm-10.86.3.orig/editor/pbmreduce.c 2019-05-14 09:27:21.952084670 +0200
|
|
+++ netpbm-10.86.3/editor/pbmreduce.c 2019-05-14 09:27:21.976084785 +0200
|
|
@@ -202,6 +202,9 @@ oppositeDir(enum Direction const arg) {
|
|
case RIGHT_TO_LEFT: return LEFT_TO_RIGHT;
|
|
}
|
|
assert(false); /* All cases handled above */
|
|
+
|
|
+ /* make gcc happy */
|
|
+ return RIGHT_TO_LEFT;
|
|
}
|
|
|
|
|
|
Index: netpbm-10.86.3/lib/libpm.c
|
|
===================================================================
|
|
--- netpbm-10.86.3.orig/lib/libpm.c 2019-05-14 09:27:21.956084689 +0200
|
|
+++ netpbm-10.86.3/lib/libpm.c 2019-05-14 09:27:21.976084785 +0200
|
|
@@ -440,6 +440,7 @@ pm_maxvaltobits(int const maxval) {
|
|
pm_error( "maxval of %d is too large!", maxval );
|
|
|
|
assert(false);
|
|
+ return 0;
|
|
}
|
|
|
|
int
|
|
Index: netpbm-10.86.3/lib/libpnm3.c
|
|
===================================================================
|
|
--- netpbm-10.86.3.orig/lib/libpnm3.c 2019-05-14 09:16:33.096977241 +0200
|
|
+++ netpbm-10.86.3/lib/libpnm3.c 2019-05-14 11:07:02.148770284 +0200
|
|
@@ -429,6 +429,8 @@ pnm_bittoxel(bit const inputBit,
|
|
case PBM_WHITE: return pnm_whitexel(maxval, PBM_TYPE); break;
|
|
default:
|
|
assert(false);
|
|
+ pixel const black = {0, 0, 0};
|
|
+ return black;
|
|
}
|
|
}
|
|
|