Convert multiple images into single PDF

Perhaps, I am missing something obvious, but I'm having so much trouble doing this. I have a folder with multiple images into it that I want to process into a *single* PDF (NOT each image ending up its own PDF).
In the past I have done this manually with a shell script:
I don't care to necessarily use this, and could just as well use an automator workflow or something else. I just seem to be having trouble getting Hazel to work on *all* the images at once and to process them into a single PDF. Is there any way to do this?
In the past I have done this manually with a shell script:
- Code: Select all
img2pdf --fit shrink --output out.pdf $(ls *.{jpg,png}|sort -V)
I don't care to necessarily use this, and could just as well use an automator workflow or something else. I just seem to be having trouble getting Hazel to work on *all* the images at once and to process them into a single PDF. Is there any way to do this?