Skip to content

Instantly share code, notes, and snippets.

@gingerbeardman
Created February 3, 2025 21:26
Show Gist options
  • Save gingerbeardman/21fabc73c9bbb24132443f436e4667ba to your computer and use it in GitHub Desktop.
Save gingerbeardman/21fabc73c9bbb24132443f436e4667ba to your computer and use it in GitHub Desktop.
Convert folder full of jp2 images into PDF, parallel across 8 CPU cores
find . -name "*.jp2" | parallel -j 8 sips -s format pdf -s formatOptions 75 --resampleHeight 1536 {} --out ../pdf/{.}.pdf
@gingerbeardman
Copy link
Author

gingerbeardman commented Feb 3, 2025

After this you can select all PDFs in Finder and do Context Menu > Quick Actions > Create PDF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment