Skip to content

Instantly share code, notes, and snippets.

@hannic
Last active December 29, 2017 17:37
Show Gist options
  • Save hannic/09de5427689080a7f6e3 to your computer and use it in GitHub Desktop.
Save hannic/09de5427689080a7f6e3 to your computer and use it in GitHub Desktop.
Extract first page of PDF as JPG image
# Extract first page of PDF as JPG image
# e.g. for creating thumbnails of pdf
# for use in OS X Terminal
# get the first page of a PDF as an image, e.g. its cover image
sips -s format jpeg /Users/<username>/Desktop/Python_for_Data_Analysis.pdf -o /Users/<username>/Desktop/cover.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment