summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-22 15:50:17 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-22 15:50:17 +0200
commit5ce37bd5150f23923afc283ad6449be8915bf928 (patch)
tree60e2b3c1cdc675fcb1d082b0e60da3e66621373d
parenta547dafed7561306b993d5d2fb68b260df3a8327 (diff)
Explain the rest of how PDFs are used as headlines
-rw-r--r--doc/DESIGN_HISTORY.md14
1 files changed, 10 insertions, 4 deletions
diff --git a/doc/DESIGN_HISTORY.md b/doc/DESIGN_HISTORY.md
index 801652b..534be44 100644
--- a/doc/DESIGN_HISTORY.md
+++ b/doc/DESIGN_HISTORY.md
@@ -213,10 +213,16 @@ and the subsystems below treat both through one mechanism.
213Every attachment is an Asset joined to pages via RelatedAsset. The 213Every attachment is an Asset joined to pages via RelatedAsset. The
214starred attachment ("headline") becomes the page's face on the 214starred attachment ("headline") becomes the page's face on the
215public site; if none is starred, visitors get a link to browse all 215public site; if none is starred, visitors get a link to browse all
216attached images instead. PDFs are headline-eligible because the 216attached images instead.
217standard raster variant set is generated for them from the 217
218document's first page (ImageMagick with Ghostscript), so aggregators 218PDFs are headline-eligible because the standard variant set (thumb,
219and teasers need no special case. 219medium, large, headline) is generated for them as PNG rasters of the
220document's first page (ImageMagick with Ghostscript); the original
221remains the PDF. Variant directories of older PDF assets may still
222contain a .pdf beside the .png — residue of the Paperclip era, when
223variants kept the original's extension. These files are unreferenced
224and safe to delete; until someone does, the mix is expected, not a
225bug.
220 226
221Presentation differs by type at the last step only: an image 227Presentation differs by type at the last step only: an image
222headline opens in the lightbox, a PDF headline renders as a document 228headline opens in the lightbox, a PDF headline renders as a document