about summary refs log tree commit diff
path: root/editor
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2022-08-16 01:14:05 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2022-08-16 01:14:05 +0000
commitee202873edb0d236e03270b96504e58b4664bd8b (patch)
tree20b25b22f031cd81204a36e19795e8759a50e4b1 /editor
parent939dd71a6334d2a2f180cb19666e7544c2753f74 (diff)
downloadnetpbm-mirror-ee202873edb0d236e03270b96504e58b4664bd8b.tar.gz
netpbm-mirror-ee202873edb0d236e03270b96504e58b4664bd8b.tar.xz
netpbm-mirror-ee202873edb0d236e03270b96504e58b4664bd8b.zip
Update internal use of 'pamcat' to adapt to its new ability to produce PNM output
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4411 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor')
-rwxr-xr-xeditor/pnmmargin5
-rwxr-xr-xeditor/pnmquantall3
-rw-r--r--editor/specialty/pnmindex.c6
3 files changed, 6 insertions, 8 deletions
diff --git a/editor/pnmmargin b/editor/pnmmargin
index 01dfdecc..94321c7f 100755
--- a/editor/pnmmargin
+++ b/editor/pnmmargin
@@ -108,9 +108,8 @@ else
     pamflip -rotate90 $tmp2 > $tmp3
 
     # Cat things together.
-    pamcat -extendplane -leftright $tmp2 $tmp1 $tmp2 > $tmp4
-    pamcat -extendplane -topbottom $tmp3 $tmp4 $tmp3 | \
-      pamtopnm $plainopt
+    pamcat -leftright $tmp2 $tmp1 $tmp2 > $tmp4
+    pamcat -topbottom $plainopt $tmp3 $tmp4 $tmp3
 fi
 
 
diff --git a/editor/pnmquantall b/editor/pnmquantall
index f18852a1..594e8f7b 100755
--- a/editor/pnmquantall
+++ b/editor/pnmquantall
@@ -145,8 +145,7 @@ sub tempFile($) {
 sub makeColorMap($$$$) {
     my ($fileNamesR, $newColorCt, $colorMapFileName, $errorR) = @_;
 
-    my $pamcatCmd =
-       "pamcat -extendplane -topbottom -white -jleft @{$fileNamesR}";
+    my $pamcatCmd = "pamcat -topbottom -white -jleft @{$fileNamesR}";
 
     my $pnmcolormapCmd = "pnmcolormap $newColorCt";
 
diff --git a/editor/specialty/pnmindex.c b/editor/specialty/pnmindex.c
index 4b8dafd6..2b39e4ec 100644
--- a/editor/specialty/pnmindex.c
+++ b/editor/specialty/pnmindex.c
@@ -502,7 +502,7 @@ makeImageFile(const char * const thumbnailFileName,
     const char * inputFileNmToken    = shellQuote(inputFileName);
 
     systemf("pbmtext %s %s"
-            "| pamcat -extendplane %s -topbottom %s - "
+            "| pamcat %s -topbottom %s - "
             "> %s",
             inputFileNmToken, invertStage, blackWhiteOpt,
             thumbnailFileName, outputFileName);
@@ -616,7 +616,7 @@ combineIntoRowAndDelete(unsigned int const row,
 
     fileList = thumbnailFileList(tempDir, row, cols);
 
-    systemf("pamcat -extendplane %s -leftright -jbottom %s "
+    systemf("pamcat %s -leftright -jbottom %s "
             "%s"
             ">%s",
             blackWhiteOpt, fileList, quantStage, fileName);
@@ -683,7 +683,7 @@ writeRowsAndDelete(unsigned int const rows,
 
     fileList = rowFileList(tempDir, rows);
 
-    systemf("pamcat -extendplane %s -topbottom %s | pamtopnm -assume %s",
+    systemf("pamcat %s -topbottom %s %s",
             blackWhiteOpt, fileList, quantStage);
 
     pm_strfree(fileList);