How to create PDF from JPG image on the linux command line

Prerequisite: sudo apt install img2pdf

img2pdf -o output.pdf --pagesize A4 image_1.jpg  image_2.jpg
Judith Roth