From: Ian Jackson Date: Tue, 26 Oct 2021 17:32:12 +0000 (+0100) Subject: yellow: process bag image X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=2a13c6e8811c2b1dea72b37d68dc9289128cc72d;p=quacks.git yellow: process bag image --- diff --git a/Makefile b/Makefile index 121d838..3ee9600 100644 --- 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