Posters and other PDFs shown as a preview card on /Publications/.
To add one:
- drop the PDF here, e.g.
ISC26_Poster.pdf bin/pdf-preview assets/posters/ISC26_Poster.pdf(writesISC26_Poster.jpgnext to it)- reference both from
_pages/Work.md:
The include renders nothing until the PDF actually exists, so an unfinished entry never shows a broken image on the live site.
Size and sharpness are two separate knobs, in two different places:
- how big the card is drawn:
width/heighton the include (CSS lengths). Without either, the card is capped at $pdf-preview-height. - how sharp the image is:
-w(raster pixels) and-q(JPEG quality) on bin/pdf-preview, because those are properties of the file on disk. Render at roughly twice thewidthyou draw at.
/CV/ uses the same include at width="36rem", from a raster made with
bin/pdf-preview -w 1400 -q 85.
Poster PDFs exported from Illustrator or Inkscape are often 50-200MB. Git keeps every binary forever, so shrink it first, e.g.
gs -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH \
-sOutputFile=small.pdf big.pdf