diff options
Diffstat (limited to 'editor/pnmquant')
-rwxr-xr-x | editor/pnmquant | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/editor/pnmquant b/editor/pnmquant index 35a75e96..340dea78 100755 --- a/editor/pnmquant +++ b/editor/pnmquant @@ -96,6 +96,7 @@ sub parseCommandLine(@) { "spreadbrightness", "spreadluminosity", "floyd|fs!", + "norandom", "quiet", "plain"); @@ -248,9 +249,9 @@ sub makeColormap($$$$$) { -sub remap($$$$) { +sub remap($$$$$) { - my ($mapfileSpec, $opt_floyd, $opt_plain, $opt_quiet) = @_; + my ($mapfileSpec, $opt_floyd, $opt_norandom, $opt_plain, $opt_quiet) = @_; # Remap the image on Standard Input to Standard Output, using the colors # from the colormap file named $mapfileSpec. @@ -261,6 +262,9 @@ sub remap($$$$) { if ($opt_floyd) { push(@options, "-floyd"); } + if ($opt_norandom) { + push(@options, "-norandom"); + } if ($opt_plain) { push(@options, "-plain"); } @@ -311,6 +315,7 @@ open(STDOUT, ">&OLDOUT"); remap($mapfileSpec, $cmdlineR->{floyd}, + $cmdlineR->{norandom}, $cmdlineR->{plain}, $cmdlineR->{quiet}); |