Python img2pdf

img2pdf is a Python library that can be used to convert raster images to PDF losslessly. It is a command-line tool so that you can use it from the terminal.