On a Mac, how can I sort about 2400 jpg
according to their creation date (i. e. stat -f %SB
) via terminal and convert them in that order into one pdf?
What if one jpg
has been created today at 11:10 pm and a second one shortly after within the same minute at 11:10 pm? Are there seconds in the creation date, which can be taken into account?
Best Answer
A simple command line with ImageMagick
convert
works for me.I tested with the following command line (in a directory with 14 png files), and there will be one picture per page in the pdf file.
But there can be problems with some versions of
convert
It works as intended with the version of
convert
in Parrot 4.4but it does not work with the version of
convert
in Ubuntu 18.04.1 LTS (up to date in February 2019)This version is 'not authorized' to write pdf files
Via an Ubuntu mailing list I had the following answer (that converting to pdf was turned off because of problems with ImageMagick vulnerabilities)