I have a JPEG (or PNG) image file and I want to create a PDF that contains this image without any quality loss. Just a one-page PDF document with that image. Is there an easy solution for this?
I know that pdflatex
can embed JPEG or PNG images directly into the document but I'd like to avoid creating a .tex
file, although this solution seems to be working: How to convert a png into pdf using LaTeX?.
As far is I know convert
always reencodes the image, so that is not the answer I'm looking for.
img2pdf
that wraps a jpg into a pdf without re-encoding