I'm still learning the command line, and I'm having trouble piping a list of files into graphicsmagick for conversion to pdf:
find . -type f | sort | gm convert file.pdf
This gives the error: gm convert: Request did not return an image.
Can I do this without resorting to more complicated methods?
This is an old question, but I found it looking for a solution to the same problem and never really found a complete answer. I came up with a simple(-ish) way of doing it myself:
It won't work if there are spaces or new lines in any of the original files' paths, though.
This method has to execute convert once for every input file. It takes much (much much) longer, especially if there are a large number of original images, but it won't get tripped up by file names:
From the manual,
So you need to specify your files...