Skip to content

Instantly share code, notes, and snippets.

@OleMchls
Last active August 1, 2017 17:35
Show Gist options
  • Save OleMchls/d6c26a79913ba034c0dd to your computer and use it in GitHub Desktop.
Save OleMchls/d6c26a79913ba034c0dd to your computer and use it in GitHub Desktop.
understanding ghostscript
gs \
-q -dNOPAUSE -dBATCH -dSAFER \
-sDEVICE=pdfwrite \
-dNumRenderingThreads=2 \
-dEmbedAllFonts=true \
-dSubsetFonts=true \
-dDownsampleColorImages=true \
-dColorImageDownsampleType=/Bicubic \
-dColorImageResolution=72 \
-dDownsampleGrayImages=true \
-dGrayImageDownsampleType=/Bicubic \
-dGrayImageResolution=72 \
-dDownsampleMonoImages=true \
-dMonoImageDownsampleType=/Bicubic \
-dMonoImageResolution=72 \
-sOutputFile="$2" \
"$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment