I needed to be able to extract the first page from a folder of PDFs and export them as JPGs.
Poked around StackExchange and found out about vips.
I wrote a simple bash script to run inside of the folder with the PDFs.
- Install vips using Homebrew:
brew install vips
- Download process.sh and move it into your PDF folder.
- Run
chmod u+x pdf-to-jpg.sh
to give the file permissions. - Execute
./pdf-to-jpg.sh
to conver the PDFs to JPGs. - Voila!