I used the following command to convert and merge all the jpg
files in a directory to a single pdf file.
convert *.jpg file.pdf
Th
You could use
convert '%d.jpg[1-132]' file.pdf
via https://www.imagemagick.org/script/command-line-processing.php:
Another method of referring to other image files is by embedding a formatting character in the filename with a scene range. Consider the filename
image-%d.jpg[1-5]
. The command
magick image-%d.jpg[1-5]
causes ImageMagick to attempt to read images with these filenames:
image-1.jpg image-2.jpg image-3.jpg image-4.jpg image-5.jpg
See also https://www.imagemagick.org/script/convert.php