Skip to content

Instantly share code, notes, and snippets.

@jonkeegan
Last active July 23, 2019 22:16
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonkeegan/3d39a12545ed63197cc81e7a4cacd760 to your computer and use it in GitHub Desktop.
Save jonkeegan/3d39a12545ed63197cc81e7a4cacd760 to your computer and use it in GitHub Desktop.
Make a Mueller Report quilt from the original PDF using Imagemagick

Make a Mueller Report quilt from the original PDF using Imagemagick

These commands will let you make a thumbnail quilt of all 448 pages of the Mueller Report PDF.

Make a new directory...

mkdir mueller_quilt

...then cd into it.

cd mueller_quilt

Grab a copy of the report:

wget https://www.justice.gov/storage/report.pdf

First install Imagamegick and ghostscript (asuming you are on Mac, and you have Homebrew)

brew install imagemagick

brew install ghostscript

This will split the PDF into 448 individiual PNG files, and scale them to 25% of their original size.

convert -density 72 report.pdf -resize 25% report.png

This will then assemble those PNGs into a quilt 20 pages across

montage null: *.png null: -geometry +0+0 -tile 20x -gravity center report_quilt.png

That's it!

@ehmorris
Copy link

I had to brew install ghostscript as well to get the convert command to run correctly. Here's a superuser thread with the same issue I was having — I had also aliased gs to git status, so watch out for that.

@jonkeegan
Copy link
Author

Ah yes...forgot about that. Will edit this. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment