Convert is an awesome program.

Here’s another way of converting JPG to PDF.

convert input.jpg output.pdf

If you don’t have it installed, run:

apt install imagemagick

Just run convert thereafter.

That is all.