Skip to content

Instantly share code, notes, and snippets.

@tbnorth
Last active June 5, 2018 15:23
Show Gist options
  • Save tbnorth/587cc63d255e9f596367b6f9f3e28930 to your computer and use it in GitHub Desktop.
Save tbnorth/587cc63d255e9f596367b6f9f3e28930 to your computer and use it in GitHub Desktop.
parallel process / convert files
basename -s .png *.png | xargs -P3 -IF bash -c "convert -density 400 F.pdf F.png; mogrify -trim -resize x740 F.png"
# probably something like
mogrify -format png -density 400 -trim -resize x740 F.pdf
# would do the same thing, but not the point of this gist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment