(There is a way described for Imagemagick but it didn't work for me https://linuxhint.com/convert-image-to-pdf-command-line/ )
sudo apt-get install img2pdf
Open a Terminal in the folder with the images and do
*sudo img2pdf .png -o output_imgs.pdf**
(assuming the images are pngs.)