Re-encode plates to lossless JBIG2 / JPEG at build time (115 MB -> 12 MB)
The scan is a bilevel 300 dpi JBIG2 layer plus lower-resolution colour, so storing every plate as 8-bit PNG only added size. tools/optimize_plates.py writes copies under work/plates-opt (bilevel to generic-mode, lossless JBIG2; genuine halftone to JPEG q88) and repoints work/pages at them; plates/ and src/ are untouched. The Dockerfile builds jbig2enc and adds qpdf, ghostscript and img2pdf. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c4aec3becf
commit
d48ce1f50c
4 files changed
+213
-1
No files matched your search
@@ -7,7 +7,7 @@ export GID := $(shell id -g)
|
||||
RUN := $(if $(NODOCKER),,docker compose run --rm -T tex)
|
||||
|
||||
OUT := ross-1988-retypeset.pdf
|
||||
SOURCES := build.sh tools/polish.py src/preamble.tex src/colophon.tex src/errata.tex \
|
||||
SOURCES := build.sh tools/polish.py tools/optimize_plates.py src/preamble.tex src/colophon.tex src/errata.tex \
|
||||
$(wildcard src/pages/*.tex)
|
||||
|
||||
.DEFAULT_GOAL := pdf
|
||||
|
||||
Reference in new issue
Block a user