From digital-printing
Downsample embedded images in a PDF to a target DPI (default 300 for print, 150 for proofs). Reduces file size and prevents printers from running out of memory on documents with huge embedded photos. Triggers on phrases like "downsample images", "shrink the PDF", "reduce image DPI", "the printer keeps choking on this PDF".
npx claudepluginhub danielrosehill/claude-code-plugins --plugin digital-printingThis skill uses the workspace's default tool permissions.
Re-encode all raster images in a PDF at a capped DPI.
Conducts multi-round deep research on GitHub repos via API and web searches, generating markdown reports with executive summaries, timelines, metrics, and Mermaid diagrams.
Share bugs, ideas, or general feedback.
Re-encode all raster images in a PDF at a capped DPI.
Embedded images often arrive at 600+ DPI from cameras/scanners. Office printers print at 300–600 DPI native — extra pixels are wasted, balloon file size, and can exceed the printer's memory (causing partial page output or job failure).
<input>-300dpi.pdf.Ghostscript with downsampling parameters tuned per image type.
gs -o output.pdf \
-sDEVICE=pdfwrite \
-dPDFSETTINGS=/printer \
-dColorImageDownsampleType=/Bicubic \
-dColorImageResolution=300 \
-dGrayImageDownsampleType=/Bicubic \
-dGrayImageResolution=300 \
-dMonoImageDownsampleType=/Subsample \
-dMonoImageResolution=600 \
-dDownsampleColorImages=true \
-dDownsampleGrayImages=true \
-dDownsampleMonoImages=true \
-dEmbedAllFonts=true \
-dNOPAUSE -dBATCH \
input.pdf
Adjust *ImageResolution values to the target DPI.
# Show embedded image dimensions and DPI
pdfimages -list input.pdf
Look at the x-ppi/y-ppi columns. Anything well above the target DPI is a downsample candidate.
pdfimages -list output.pdf
ls -lh input.pdf output.pdf # confirm size reduction
Downsampled PDF, typically 30–80% smaller. Original preserved.