Skip to content

Instantly share code, notes, and snippets.

View skf-funzt's full-sized avatar
👾
Exploring the technological edge

Stephan Koglin-Fischer skf-funzt

👾
Exploring the technological edge
  • Stephan Koglin-Fischer - Software Engineer
  • Halle (Saale)
View GitHub Profile
@skf-funzt
skf-funzt / gs-resample.sh
Created June 9, 2023 15:10 — forked from lkraider/gs-resample.sh
Ghostscript PDF quality downsample
#!/bin/sh
# It seems it's very hard to set resample output quality with Ghostscript.
# So instead rely on `prepress` preset parameter to select a good /QFactor
# and override the options we don't want from there.
gs \
-o resampled.pdf \
-sDEVICE=pdfwrite \
-dPDFSETTINGS=/prepress \