A Python package for lossless conversion of raster images to PDF.
The image embedded in the PDF will always have the exact same color information for every pixel as the input.
img2pdf
homepage on Gitlab: https://gitlab.mister-muffin.de/josch/img2pdf