A Folder of Slide Screenshots Becomes One Lean PDF
convert-images-to-pdf stitches deck screenshots into a 16:9 PDF at about 30–80 KB a page, in the order they were captured.
Why Care?
When a deck sits behind a viewer that can't be downloaded, someone screenshots
it page by page. Those screenshots have to become one PDF before a memo run or
a deal slide can use them. The settings that keep that PDF small and still
legible were worked out once, in memopop's slim_deck.py, and then lived only
in a script and a plan. Now any session can find them by name.
What changed
convert-images-to-pdf, withscripts/images-to-pdf.py(uv inline dependencies, no project needed).Settled defaults: long side 1600 px, JPEG q85
optimize=True, pages assembled with PyMuPDF at the image's own size. These were measured at 28.0 MB to 1.4 MB on a retina-screenshot deck.Capture-time order. macOS screenshot names carry the time, and capture order is page order. A filename sort puts 10 AM before 9 AM and PM before AM across noon.
--dry-runprints the order before anything is written.Safe by default. It refuses to overwrite and never deletes an input. The viewer-chrome crop applies only when every page agrees on the same box.