Our work involves visually inspecting a number of plots together. All plots of same size. we want to print them in pages to study. Something like a 8.5"x11" paper with 1" margin gives me a 8"x10" space with 3:4 aspect ratio. This space can be filled with 9 or 16 images each of the same aspect ratio. Adding some space between images would be great (I think the term is gutter). My question is around how to generate this PDF from the individual source images? Constraints: Mac or *nix command line preferred python3 or related code is preferred, since I know it somewhat We want to generate these in bulk, so I would like to avoid per-image UI drag-drop. The data to generate these plots is available, so I can regenerate these plots with minimal effort. So far we have tried: (current solution) Opening all images in Mac+preview then doing a page layout with multiple pages per sheet. This offers less control (inability to specify border size, gutter etc) and is manual for a batch of images. Does not go beyond 16 images; 25 would be great. Photoshop. Create a page with a grid of frames, then paste files as linked. Then we subsequently replace the underlying files and reopen the PSD. This is absolute control, but involves far to much manual work. Continue reading...