image-compress
Compress images to a target file size using macOS sips. No dependencies required.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Compress images to a target file size using macOS sips. No dependencies required.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Analyze pi session transcripts to discover patterns that could become AGENTS.md rules, skills, or prompt templates. Mines your usage history for automation opportunities.
Build PR-focused context packs (PR description + git diff + full changed files + related files via Scribe), then budget-fit and token-check with o200k-base.
Review a pull request for bugs, style issues, and guideline compliance. Local review - does not post to GitHub.
Build LLM-ready code dumps with optional docs, then count tokens with tokencount (o200k-base) against a context budget (for example 272k for GPT-5).
Multi-model code review. Runs code-review skill with 3 models in parallel, then synthesizes findings.
Compress videos to a target file size using ffmpeg two-pass encoding. Useful for Discord/Slack upload limits.
| name | image-compress |
| description | Compress images to a target file size using macOS sips. No dependencies required. |
Compress images to a target file size using macOS built-in sips. Works with PNG, JPEG, HEIC, TIFF, and more.
~/dev/pi-skills/image-compress/compress.sh <input> [output] [options]
Options:
--target MB - Target size in MB (default: 5)--width WIDTH - Scale to width (maintains aspect ratio)--format FORMAT - Convert to format: jpeg, png, heic, tiff (default: keep original)--quality 0-100 - JPEG/HEIC quality (default: 85)If no output is specified, creates <input>_compressed.<ext> in the same directory.
# Compress to 5MB (default), auto-resize
compress.sh photo.png
# Target 2MB
compress.sh photo.png out.png --target 2
# Convert to JPEG (often much smaller)
compress.sh photo.png out.jpg --format jpeg
# Specific width
compress.sh photo.png out.png --width 2000
# High quality JPEG
compress.sh photo.png out.jpg --format jpeg --quality 95
Note: Uses decimal MB (1 MB = 1,000,000 bytes) to match Finder.