Convert multiple images to a single PDF, each image being on its own page

img2pdf

  • Command-line lossless converter of raster images to PDF.
    More information: <https://gitlab.mister-muffin.de/josch/img2pdf>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

img2pdf {{path/to/image1.jpg}} {{path/to/image2.jpg}} --output {{path/to/file.pdf}}

click the source code to copy install img2pdf on any operating system with command-not-found.com