about summary refs log tree commit diff
path: root/editor
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2022-08-03 02:22:52 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2022-08-03 02:22:52 +0000
commita1877d908ca67b25e687f742e6341cb1351f67e8 (patch)
tree8e0cc61c9b605d610f177096010ceae2c3af8610 /editor
parent390e15d40c1bd2a90838a95077677b4a7cd59d52 (diff)
downloadnetpbm-mirror-a1877d908ca67b25e687f742e6341cb1351f67e8.tar.gz
netpbm-mirror-a1877d908ca67b25e687f742e6341cb1351f67e8.tar.xz
netpbm-mirror-a1877d908ca67b25e687f742e6341cb1351f67e8.zip
Use new 'pamcat' instead of 'pnmcat'
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4388 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor')
-rw-r--r--editor/specialty/pnmindex.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/editor/specialty/pnmindex.c b/editor/specialty/pnmindex.c
index ea9e12dd..5b8e9df2 100644
--- a/editor/specialty/pnmindex.c
+++ b/editor/specialty/pnmindex.c
@@ -387,13 +387,22 @@ makeImageFile(const char * const thumbnailFileName,
               const char * const inputFileName,
               bool         const blackBackground,
               const char * const outputFileName) {
+/*----------------------------------------------------------------------------
+   Create one thumbnail image.  It consists of the image in the file named
+   'thumbnailFileName' with text of that name appended to the bottom.
 
+   Write the result to the file named 'outputFileName'.
+
+   'blackBackground' means give the image a black background where padding
+   is necessary and make the text white on black.  If false, give the image
+   a white background instead.
+-----------------------------------------------------------------------------*/
     const char * const blackWhiteOpt = blackBackground ? "-black" : "-white";
     const char * const invertStage = blackBackground ? "| pnminvert " : "";
 
     systemf("pbmtext \"%s\" "
             "%s"
-            "| pnmcat %s -topbottom %s - "
+            "| pamcat -extendplane %s -topbottom %s - "
             "> %s",
             inputFileName, invertStage, blackWhiteOpt,
             thumbnailFileName, outputFileName);
@@ -505,7 +514,7 @@ combineIntoRowAndDelete(unsigned int const row,
 
     fileList = thumbnailFileList(tempDir, row, cols);
 
-    systemf("pnmcat %s -leftright -jbottom %s "
+    systemf("pamcat -extendplane %s -leftright -jbottom %s "
             "%s"
             ">%s",
             blackWhiteOpt, fileList, quantStage, fileName);
@@ -572,7 +581,7 @@ writeRowsAndDelete(unsigned int const rows,
 
     fileList = rowFileList(tempDir, rows);
 
-    systemf("pnmcat %s -topbottom %s %s",
+    systemf("pamcat -extendplane %s -topbottom %s | pnmtopnm -assume %s",
             blackWhiteOpt, fileList, quantStage);
 
     pm_strfree(fileList);