chiark / gitweb /
yellow: process bag image
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 26 Oct 2021 17:32:12 +0000 (18:32 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 26 Oct 2021 17:32:12 +0000 (18:32 +0100)
Makefile

index 121d83868dfea79bc0c30475066edec788e8760b..3ee9600450d47ae804511fc0e257c7d142b04c22 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,17 +7,17 @@ all:  pumpkin-books.pdf
 
 # Don't print the ps, printers (eg ours!) don't always have the fonts
 
-pumpkin-books.ps: pumpkin-books.ps.pl
+pumpkin-books.ps: pumpkin-books.ps.pl bag.pgm
        ./$< >$@.new && mv -f $@.new $@
 
-pumpkin-books.pdf: pumpkin-books.ps bag.pgm
+pumpkin-books.pdf: pumpkin-books.ps
        gs -q -dNOPAUSE -dBATCH -dPDFSETTINGS=/prepress \
                -sDEVICE=pdfwrite -sOutputFile=$@ $<
 
 bag.pgm: Sack_-_Sac_-_Zak_brown.svg Makefile
        rsvg-convert -f png -o $@.tmp.png $<
        set -o pipefail; set -e;                        \
-       pngtopnm <$@.tmp.png                            \
+       pngtopnm <$@.tmp.png -mix -background 'white'   \
        | ppmtopgm                                      \
        | pnmdepth 255                                  \
        | pnmnoraw >$@.tmp.new