Skip to content
cccskills
FreePublished on GitHub

pdf-compressor

大きなPDFファイルを圧縮するスキル。ファイルサイズを最大98%削減。「PDFを圧縮して」「PDFを軽くして」「ファイルサイズを小さくして」等のリクエストで発動。

The English summary is being prepared. Showing the original description.

See how to install

Files included (5)

  • SKILL.md2.3 KB
  • agents/openai.yaml148 B
  • scripts/compress.py4.6 KB
  • SKILL.en.md2.3 KB
  • SKILL.es.md2.6 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

PDF Compressor

Compress PDF files by converting pages to optimized images and rebuilding the PDF.

Workflow

  1. Convert PDF pages to images at specified DPI
  2. Resize images to target width (maintaining aspect ratio)
  3. Compress as JPEG with quality setting
  4. Rebuild PDF from compressed images

Usage

python scripts/compress.py "{pdf_path}" --width {width} --quality {quality} --output "{output_path}"

Parameters

ParameterRequiredDefaultDescription
pdf_pathYes-Path to PDF file to compress
--widthNo1920Page width in pixels
--qualityNo85JPEG quality (1-100)
--dpiNo150DPI for PDF to image conversion
--output, -oNoautoOutput path (default: {filename}_compressed.pdf)

Quality Presets

Use CaseWidthQualityExpected Reduction
Web/Email128075~95%
Standard192085~90%
High Quality256090~80%
Print384095~60%

Examples

# Basic compression (default settings)
python scripts/compress.py "large_presentation.pdf"

# Web-optimized (smaller file)
python scripts/compress.py "slides.pdf" --width 1280 --quality 75

# High quality for presentations
python scripts/compress.py "report.pdf" --width 2560 --quality 90

# Custom output path
python scripts/compress.py "document.pdf" -o "document_small.pdf"

Requirements

  • Python packages: pdf2image, Pillow, img2pdf
  • System: poppler (for pdf2image)
    • macOS: brew install poppler
    • Ubuntu: apt-get install poppler-utils
    • Windows: poppler-windows からバイナリを取得しPATHに追加

Notes

  • Original PDF is not modified
  • Text becomes rasterized (not searchable)
  • Best for image-heavy presentations and slides
  • For text-heavy documents, consider Ghostscript instead

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

A/Bテストや実験の設計・実装を支援するスキル。 「A/Bテストを設計して」「スプリットテストしたい」「仮説を立ててテストしたい」「バリアントを比較」等のリクエストで発動。 トラッキング実装は analytics-tracking を参照。

The English summary is being prepared. Showing the original description.

minicoohei/ai-agent-camp346Updated Oct 7, 2026

マルチエージェントシステムのアーキテクチャ設計ツールキット。 「エージェントを設計して」「マルチエージェント構成」「エージェントのアーキテクチャ」「オーケストレーション設計」等のリクエストで発動。

The English summary is being prepared. Showing the original description.

minicoohei/ai-agent-camp346Updated Oct 7, 2026

ai-agent-campのローカル環境セットアップを確認するスキル。 「セットアップ確認」「環境チェック」「初期設定できてる?」「インストール確認」「依存関係チェック」等のリクエストで発動。

The English summary is being prepared. Showing the original description.

minicoohei/ai-agent-camp346Updated Oct 7, 2026

ai-agent-campのスラッシュコマンドをCodexでルーティングするスキル。 「/start-0-1を実行」「スラッシュコマンドを使いたい」「コマンドルーティング」「Cursorのコマンドを使いたい」等のリクエストで発動。

The English summary is being prepared. Showing the original description.

minicoohei/ai-agent-camp346Updated Oct 7, 2026

ai-agent-campの環境変数・認証情報を安全に管理するスキル。 「APIキーを設定」「.envを管理」「環境変数の設定」「credential managerを使いたい」「秘密情報の管理」等のリクエストで発動。

The English summary is being prepared. Showing the original description.

minicoohei/ai-agent-camp346Updated Oct 7, 2026

ai-agent-campリポジトリの案内・オリエンテーションスキル。 「リポジトリ案内」「次のレッスンは?」「どこから始める」「ツールの違い」「aiagent概要」等のリクエストで発動。

The English summary is being prepared. Showing the original description.

minicoohei/ai-agent-camp346Updated Oct 7, 2026

See all skills by minicoohei

Report a problem with this skill