about summary refs log tree commit diff
path: root/editor
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2018-01-24 18:04:27 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2018-01-24 18:04:27 +0000
commit7486a2fdcc31a1909ae8728b420a5d742413b2cc (patch)
treed518c85fcdc07af820e144eb3f5e88171ed6dd80 /editor
parenta80afca9f391f6d0b0c6d0a174dbc1a5be532a8f (diff)
downloadnetpbm-mirror-7486a2fdcc31a1909ae8728b420a5d742413b2cc.tar.gz
netpbm-mirror-7486a2fdcc31a1909ae8728b420a5d742413b2cc.tar.xz
netpbm-mirror-7486a2fdcc31a1909ae8728b420a5d742413b2cc.zip
Add -norandom
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3130 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor')
-rwxr-xr-xeditor/pnmquant9
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});