diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-22 15:50:17 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-22 15:50:17 +0200 |
| commit | 5ce37bd5150f23923afc283ad6449be8915bf928 (patch) | |
| tree | 60e2b3c1cdc675fcb1d082b0e60da3e66621373d /doc | |
| parent | a547dafed7561306b993d5d2fb68b260df3a8327 (diff) | |
Explain the rest of how PDFs are used as headlines
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/DESIGN_HISTORY.md | 14 |
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. | |||
| 213 | Every attachment is an Asset joined to pages via RelatedAsset. The | 213 | Every attachment is an Asset joined to pages via RelatedAsset. The |
| 214 | starred attachment ("headline") becomes the page's face on the | 214 | starred attachment ("headline") becomes the page's face on the |
| 215 | public site; if none is starred, visitors get a link to browse all | 215 | public site; if none is starred, visitors get a link to browse all |
| 216 | attached images instead. PDFs are headline-eligible because the | 216 | attached images instead. |
| 217 | standard raster variant set is generated for them from the | 217 | |
| 218 | document's first page (ImageMagick with Ghostscript), so aggregators | 218 | PDFs are headline-eligible because the standard variant set (thumb, |
| 219 | and teasers need no special case. | 219 | medium, large, headline) is generated for them as PNG rasters of the |
| 220 | document's first page (ImageMagick with Ghostscript); the original | ||
| 221 | remains the PDF. Variant directories of older PDF assets may still | ||
| 222 | contain a .pdf beside the .png — residue of the Paperclip era, when | ||
| 223 | variants kept the original's extension. These files are unreferenced | ||
| 224 | and safe to delete; until someone does, the mix is expected, not a | ||
| 225 | bug. | ||
| 220 | 226 | ||
| 221 | Presentation differs by type at the last step only: an image | 227 | Presentation differs by type at the last step only: an image |
| 222 | headline opens in the lightbox, a PDF headline renders as a document | 228 | headline opens in the lightbox, a PDF headline renders as a document |
