{"id":"9eebb66a-d9d4-4394-bf87-21d4d5b80eed","entityType":"agent","slug":"clawhub-fuyunzhishang-pixmind-image-compress","name":"pixmind-image-compress","canonicalUrl":"https://www.xpersona.co/agent/clawhub-fuyunzhishang-pixmind-image-compress","canonicalPath":"/agent/clawhub-fuyunzhishang-pixmind-image-compress","generatedAt":"2026-10-11T03:57:25.464Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-11T01:49:43.741Z","emptyReason":null},"description":"Cloud-powered image compression and resize — compress JPG/PNG/WebP/HEIC to WebP/AVIF, resize images, batch process folders. No local dependencies, uses Tencent Cloud COS imageMogr2 via Pixmind API. Save 60-90% file size with scene presets (web, wechat, email, thumbnail). Supports format conversion, quality control, and dimension adjustment. Skill: pixmind-image-compress Owner: fuyunzhishang Summary: Cloud-powered image compression and resize — compress JPG/PNG/WebP/HEIC to WebP/AVIF, resize images, batch process folders. No local dependencies, uses Tencent Cloud COS imageMogr2 via Pixmind API. Save 60-90% file size with scene presets (web, wechat, email, thumbnail). Supports format conversion, quality control, and dimension adjustment. Tags: latest:1.1.","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.","installCommand":"clawhub skill install s17cjqv5bh3ckgqc9bvsvvxjkn840t25:pixmind-image-compress","sourceUrl":"https://clawhub.ai/fuyunzhishang/pixmind-image-compress","homepage":"https://clawhub.ai/fuyunzhishang/skills/pixmind-image-compress","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/fuyunzhishang/pixmind-image-compress","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/fuyunzhishang/skills/pixmind-image-compress","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":62,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Cloud-powered image compression and resize — compress JPG/PNG/WebP/HEIC to WebP/AVIF, resize images, batch process folders. No local dependencies, uses Tencent "},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-11T01:49:43.741Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-11T01:49:43.741Z","emptyReason":null},"stars":null,"forks":null,"downloads":1200,"packageName":null,"latestVersion":"1.1.3","tractionLabel":"1.2K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-11T01:49:43.727Z","emptyReason":null},"lastUpdatedAt":"2026-10-11T01:49:43.741Z","lastCrawledAt":"2026-10-11T01:49:43.727Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-12T01:49:43.727Z","lastVerifiedAt":null,"highlights":[{"version":"1.1.3","createdAt":"2026-08-10T03:00:47.749Z","changelog":"Separate local image processing from the authenticated API client for a clearer security boundary; retain Bearer-only API Platform compression.","fileCount":5,"zipByteSize":8415},{"version":"1.1.2","createdAt":"2026-08-10T02:59:55.735Z","changelog":"Remove the obsolete X-App-Key compatibility header; API Platform compression now uses only the declared PIXMIND_API_KEY Bearer credential.","fileCount":4,"zipByteSize":8370},{"version":"1.1.1","createdAt":"2026-08-10T02:59:15.950Z","changelog":"Remove manual .env file parsing; rely on OpenClaw environment injection to eliminate credential-file access while retaining API Platform compression support.","fileCount":4,"zipByteSize":8104},{"version":"1.1.0","createdAt":"2026-08-10T02:58:05.682Z","changelog":"Migrate image compression to /api-platform/v1/image/compress with Bearer authentication and Base64 local-file support.","fileCount":4,"zipByteSize":8481},{"version":"1.0.1","createdAt":"2026-05-02T04:19:34.971Z","changelog":"Fix: default API base URL to production endpoint (aihub-admin.aimix.pro)","fileCount":4,"zipByteSize":8380},{"version":"1.0.0","createdAt":"2026-05-02T04:11:00.704Z","changelog":"Initial release: cloud image compression and resize via Pixmind COS API","fileCount":3,"zipByteSize":7130}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17cjqv5bh3ckgqc9bvsvvxjkn840t25:pixmind-image-compress","setupComplexity":"low","setupSteps":["Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-fuyunzhishang-pixmind-image-compress/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-fuyunzhishang-pixmind-image-compress/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-fuyunzhishang-pixmind-image-compress/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-fuyunzhishang-pixmind-image-compress/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-fuyunzhishang-pixmind-image-compress/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-fuyunzhishang-pixmind-image-compress/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-11T03:57:25.461Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-fuyunzhishang-pixmind-image-compress/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-fuyunzhishang-pixmind-image-compress/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-fuyunzhishang-pixmind-image-compress/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-fuyunzhishang-pixmind-image-compress/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-11T01:49:43.741Z","emptyReason":null},"readme":"Skill: pixmind-image-compress\n\nOwner: fuyunzhishang\n\nSummary: Cloud-powered image compression and resize — compress JPG/PNG/WebP/HEIC to WebP/AVIF, resize images, batch process folders. No local dependencies, uses Tencent Cloud COS imageMogr2 via Pixmind API. Save 60-90% file size with scene presets (web, wechat, email, thumbnail). Supports format conversion, quality control, and dimension adjustment.\n\nTags: latest:1.1.3\n\nVersion history:\n\nv1.1.3 | 2026-08-10T03:00:47.749Z | user\n\nSeparate local image processing from the authenticated API client for a clearer security boundary; retain Bearer-only API Platform compression.\n\nv1.1.2 | 2026-08-10T02:59:55.735Z | user\n\nRemove the obsolete X-App-Key compatibility header; API Platform compression now uses only the declared PIXMIND_API_KEY Bearer credential.\n\nv1.1.1 | 2026-08-10T02:59:15.950Z | user\n\nRemove manual .env file parsing; rely on OpenClaw environment injection to eliminate credential-file access while retaining API Platform compression support.\n\nv1.1.0 | 2026-08-10T02:58:05.682Z | user\n\nMigrate image compression to /api-platform/v1/image/compress with Bearer authentication and Base64 local-file support.\n\nv1.0.1 | 2026-05-02T04:19:34.971Z | user\n\nFix: default API base URL to production endpoint (aihub-admin.aimix.pro)\n\nv1.0.0 | 2026-05-02T04:11:00.704Z | user\n\nInitial release: cloud image compression and resize via Pixmind COS API\n\nArchive index:\n\nArchive v1.1.3: 5 files, 8415 bytes\n\nFiles: compress.js (8512b), pixmind-client.js (734b), skill-card.md (2360b), SKILL.md (6663b), _meta.json (141b)\n\nFile v1.1.3:SKILL.md\n\n---\nname: pixmind-image-compress\ndescription: \"Cloud-powered image compression and resize — compress JPG/PNG/WebP/HEIC to WebP/AVIF, resize images, batch process folders. No local dependencies, uses Tencent Cloud COS imageMogr2 via Pixmind API. Save 60-90% file size with scene presets (web, wechat, email, thumbnail). Supports format conversion, quality control, and dimension adjustment.\"\nmetadata: {\"openclaw\": {\"requires\": {\"env\": [\"PIXMIND_API_KEY\"]}, \"primaryEnv\": \"PIXMIND_API_KEY\"}}\n---\n\n# Pixmind Image Compress\n\nCloud-powered image compression and resize. Compress JPG, PNG, WebP, HEIC photos to WebP, AVIF or smaller JPG — save 60-90% file size with zero local dependencies.\n\nPowered by [Pixmind](https://www.pixmind.io) + Tencent Cloud COS [imageMogr2](https://cloud.tencent.com/document/product/460/36540).\n\n## Why this skill?\n\n- **Zero install** — No sharp, ImageMagick, or native modules. Runs on any platform with just an API key.\n- **Cloud-processed** — Handles HEIC, AVIF, TPG formats that local tools struggle with.\n- **Scene presets** — One command for web, WeChat, email, or archival use.\n- **Batch ready** — Compress entire folders recursively.\n- **Safe by default** — Never overwrites originals, auto-numbered output.\n\n## When to use\n\n**Use this skill when the user mentions:**\n\n1. **Compress** — \"图片太大\"、\"压缩一下\"、\"缩小文件\"、\"reduce image size\"、\"compress photo\"、\"file too large\"\n2. **Format conversion** — \"转成 JPG\"、\"PNG 转 WebP\"、\"HEIC 转 JPG\"、\"convert to webp\"、\"change format\"\n3. **Resize** — \"缩小到 1920px\"、\"调整尺寸\"、\"resize image\"、\"reduce dimensions\"、\"scale down\"\n4. **Batch** — \"批量压缩\"、\"处理这个文件夹\"、\"compress all images\"、\"batch resize\"\n5. **Scene optimization** — \"用于邮件附件\"、\"上传网站\"、\"微信发送\"、\"optimize for web\"、\"shrink for email\"\n6. **Typical triggers**:\n   - \"帮我压缩这张图片，文件太大了发不了微信\"\n   - \"Screenshot.png is 10MB, make it smaller\"\n   - \"Convert all PNGs in this folder to WebP\"\n   - \"Resize these photos to max 1920px width\"\n\n**Do NOT trigger for:**\n- Image generation (use `pixmind-image` skill)\n- Image editing (crop, rotate, watermark, filters)\n- Image analysis (OCR, content recognition, EXIF reading)\n\n## Prerequisites\n\n1. Register at [pixmind.io](https://www.pixmind.io/) — **200 bonus points on signup** (free trial)\n2. Create an API key in the [API Platform dashboard](https://www.pixmind.io/api-platform/dashboard/keys)\n3. Set env `PIXMIND_API_KEY` with your key\n\n## Quick Start\n\n```bash\n# Compress a single image (local file)\nnode {baseDir}/compress.js --file ~/Desktop/photo.png --preset web\n\n# Compress from URL\nnode {baseDir}/compress.js --url https://example.com/image.jpg --quality 80 --format webp\n\n# Resize to max 1920px width\nnode {baseDir}/compress.js --file photo.jpg --width 1920\n\n# Batch compress a folder\nnode {baseDir}/compress.js --dir ~/Pictures/ --preset web --recursive\n```\n\n## Presets\n\nQuick scene-based compression — no need to remember quality numbers:\n\n| Preset | Quality | Format | Use Case | Savings |\n|--------|---------|--------|----------|---------|\n| `web` | 75 | WebP | Website, blog, CMS upload | 60-70% |\n| `wechat` | 65 | JPG | WeChat, social media sharing | 70-80% |\n| `email` | 55 | JPG | Email attachments, fast transfer | 80-90% |\n| `quality` | 95 | original | High-quality archiving, print | 30-40% |\n| `thumbnail` | 60 | WebP | Thumbnails, previews, avatars | 80-90% |\n\n## API Details\n\n**Endpoint**: `POST https://aihub-admin.aimix.pro/api-platform/v1/image/compress`\n**Auth**: Header `Authorization: Bearer {API_KEY}`\n\n### Request Body (JSON)\n\n| Parameter | Required | Type | Description |\n|-----------|----------|------|-------------|\n| `imageUrl` | One of | string | Image URL (COS or external link) |\n| `imageBase64` | One of | string | Base64 image data (supports `data:image/xxx;base64,` prefix) |\n| `format` | No | string | Output format: `webp`, `jpg`, `png`, `avif`, `heif`, `tpg` |\n| `quality` | No | number | Compression quality 1-100 (default: 75) |\n| `width` | No | number | Target width in pixels (maintains aspect ratio) |\n| `height` | No | number | Target height in pixels (maintains aspect ratio) |\n| `mode` | No | string | Response type: `url` (default) or `base64` |\n\n### Response Format\n\n```json\n{\n  \"code\": 1000,\n  \"message\": \"success\",\n  \"data\": {\n    \"originalUrl\": \"https://bucket.cos.region.myqcloud.com/image.jpg\",\n    \"compressedUrl\": \"https://bucket.cos.region.myqcloud.com/image.jpg?imageMogr2/format/webp/quality/75\",\n    \"originalSize\": 1024000,\n    \"compressedSize\": 256000,\n    \"format\": \"webp\",\n    \"quality\": 75,\n    \"width\": 800,\n    \"height\": 600\n  }\n}\n```\n\n## Supported Formats\n\n**Input**: JPG, JPEG, PNG, WebP, GIF, BMP, HEIC, HEIF\n**Output**: `webp`, `jpg`, `png`, `avif`, `heif`, `tpg`\n\n## CLI Options\n\n| Option | Short | Type | Default | Description |\n|--------|-------|------|---------|-------------|\n| `--url` | `-u` | string | — | Image URL to compress |\n| `--file` | `-f` | string | — | Local image file path |\n| `--dir` | `-d` | string | — | Directory for batch processing |\n| `--format` | | string | original | Output: webp, jpg, png, avif, heif, tpg |\n| `--quality` | `-q` | number | 75 | Quality 1-100 |\n| `--width` | `-w` | number | — | Target width (maintain ratio) |\n| `--height` | | number | — | Target height (maintain ratio) |\n| `--preset` | `-p` | string | — | web, wechat, email, quality, thumbnail |\n| `--output` | `-o` | string | auto | Output directory |\n| `--recursive` | `-r` | boolean | false | Process subdirectories |\n| `--mode` | | string | url | Response: url or base64 |\n\n## Output Rules\n\n- Compressed files saved to `~/Downloads/compressed-images/{date}/` by default\n- Original files are **never** modified or overwritten\n- Duplicate filenames auto-numbered: `photo_001.jpg`, `photo_002.jpg`\n- Batch mode preserves original directory structure\n\n## Guidelines\n\n1. For local files, the script auto-reads and converts to Base64 for upload\n2. Default to quality 75 — good balance of quality and size\n3. Match presets to use cases: `web` for sites, `wechat` for sharing, `email` for attachments\n4. When resizing, specify only one dimension to maintain aspect ratio\n5. For batch processing, show progress and total savings summary\n6. After compression, always show before/after size and savings percentage\n7. Prefer `webp` for web — best compression with good quality\n8. For photos: recommend `jpg` or `webp`; for screenshots/diagrams: `png` or `webp`\n9. HEIC (iPhone) photos are natively supported — no extra dependencies needed\n\nFile v1.1.3:_meta.json\n\n{\n  \"ownerId\": \"kn78d1khbws6fcy1abp0y0hpgd840v58\",\n  \"slug\": \"pixmind-image-compress\",\n  \"version\": \"1.1.3\",\n  \"publishedAt\": 1786330847749\n}\n\nFile v1.1.3:skill-card.md\n\n## Description:\n\nCloud-powered image compression and resize: compress JPG/PNG/WebP/HEIC to WebP/AVIF, resize images, and batch process folders using Pixmind API and Tencent Cloud COS imageMogr2.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[fuyunzhishang](https://clawhub.ai/user/fuyunzhishang)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users, developers, and content teams use this skill to compress, resize, and convert individual images or image folders for web, social, email, thumbnail, and archival workflows.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Selected images are uploaded to Pixmind/Tencent-backed cloud processing.\n\nMitigation: Use the skill only for images that are appropriate to send to the cloud service, and confirm the input set before compression.\n\nRisk: Recursive batch mode can include more local files than intended, especially from untrusted archives or shared folders.\n\nMitigation: Avoid recursive batch mode on untrusted folders and review the files to be processed before running the command.\n\nRisk: Remote image download handling can access network locations beyond the original input.\n\nMitigation: Prefer trusted image URLs and review generated outputs before using or distributing them.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/fuyunzhishang/skills/pixmind-image-compress)\n- [Pixmind](https://www.pixmind.io)\n- [Tencent Cloud COS imageMogr2](https://cloud.tencent.com/document/product/460/36540)\n- [Pixmind API Platform Keys](https://www.pixmind.io/api-platform/dashboard/keys)\n\n## Skill Output:\n\n**Output Type(s):** [text, files, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown or plain text with inline shell commands; compressed image files are written to the configured output directory.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Requires PIXMIND_API_KEY. Local image inputs may be uploaded to Pixmind/Tencent-backed cloud processing.]\n\n## Skill Version(s):\n\n1.1.3 (source: server release metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nArchive v1.1.2: 4 files, 8370 bytes\n\nFiles: compress.js (9209b), skill-card.md (2855b), SKILL.md (6663b), _meta.json (141b)\n\nFile v1.1.2:SKILL.md\n\n---\nname: pixmind-image-compress\ndescription: \"Cloud-powered image compression and resize — compress JPG/PNG/WebP/HEIC to WebP/AVIF, resize images, batch process folders. No local dependencies, uses Tencent Cloud COS imageMogr2 via Pixmind API. Save 60-90% file size with scene presets (web, wechat, email, thumbnail). Supports format conversion, quality control, and dimension adjustment.\"\nmetadata: {\"openclaw\": {\"requires\": {\"env\": [\"PIXMIND_API_KEY\"]}, \"primaryEnv\": \"PIXMIND_API_KEY\"}}\n---\n\n# Pixmind Image Compress\n\nCloud-powered image compression and resize. Compress JPG, PNG, WebP, HEIC photos to WebP, AVIF or smaller JPG — save 60-90% file size with zero local dependencies.\n\nPowered by [Pixmind](https://www.pixmind.io) + Tencent Cloud COS [imageMogr2](https://cloud.tencent.com/document/product/460/36540).\n\n## Why this skill?\n\n- **Zero install** — No sharp, ImageMagick, or native modules. Runs on any platform with just an API key.\n- **Cloud-processed** — Handles HEIC, AVIF, TPG formats that local tools struggle with.\n- **Scene presets** — One command for web, WeChat, email, or archival use.\n- **Batch ready** — Compress entire folders recursively.\n- **Safe by default** — Never overwrites originals, auto-numbered output.\n\n## When to use\n\n**Use this skill when the user mentions:**\n\n1. **Compress** — \"图片太大\"、\"压缩一下\"、\"缩小文件\"、\"reduce image size\"、\"compress photo\"、\"file too large\"\n2. **Format conversion** — \"转成 JPG\"、\"PNG 转 WebP\"、\"HEIC 转 JPG\"、\"convert to webp\"、\"change format\"\n3. **Resize** — \"缩小到 1920px\"、\"调整尺寸\"、\"resize image\"、\"reduce dimensions\"、\"scale down\"\n4. **Batch** — \"批量压缩\"、\"处理这个文件夹\"、\"compress all images\"、\"batch resize\"\n5. **Scene optimization** — \"用于邮件附件\"、\"上传网站\"、\"微信发送\"、\"optimize for web\"、\"shrink for email\"\n6. **Typical triggers**:\n   - \"帮我压缩这张图片，文件太大了发不了微信\"\n   - \"Screenshot.png is 10MB, make it smaller\"\n   - \"Convert all PNGs in this folder to WebP\"\n   - \"Resize these photos to max 1920px width\"\n\n**Do NOT trigger for:**\n- Image generation (use `pixmind-image` skill)\n- Image editing (crop, rotate, watermark, filters)\n- Image analysis (OCR, content recognition, EXIF reading)\n\n## Prerequisites\n\n1. Register at [pixmind.io](https://www.pixmind.io/) — **200 bonus points on signup** (free trial)\n2. Create an API key in the [API Platform dashboard](https://www.pixmind.io/api-platform/dashboard/keys)\n3. Set env `PIXMIND_API_KEY` with your key\n\n## Quick Start\n\n```bash\n# Compress a single image (local file)\nnode {baseDir}/compress.js --file ~/Desktop/photo.png --preset web\n\n# Compress from URL\nnode {baseDir}/compress.js --url https://example.com/image.jpg --quality 80 --format webp\n\n# Resize to max 1920px width\nnode {baseDir}/compress.js --file photo.jpg --width 1920\n\n# Batch compress a folder\nnode {baseDir}/compress.js --dir ~/Pictures/ --preset web --recursive\n```\n\n## Presets\n\nQuick scene-based compression — no need to remember quality numbers:\n\n| Preset | Quality | Format | Use Case | Savings |\n|--------|---------|--------|----------|---------|\n| `web` | 75 | WebP | Website, blog, CMS upload | 60-70% |\n| `wechat` | 65 | JPG | WeChat, social media sharing | 70-80% |\n| `email` | 55 | JPG | Email attachments, fast transfer | 80-90% |\n| `quality` | 95 | original | High-quality archiving, print | 30-40% |\n| `thumbnail` | 60 | WebP | Thumbnails, previews, avatars | 80-90% |\n\n## API Details\n\n**Endpoint**: `POST https://aihub-admin.aimix.pro/api-platform/v1/image/compress`\n**Auth**: Header `Authorization: Bearer {API_KEY}`\n\n### Request Body (JSON)\n\n| Parameter | Required | Type | Description |\n|-----------|----------|------|-------------|\n| `imageUrl` | One of | string | Image URL (COS or external link) |\n| `imageBase64` | One of | string | Base64 image data (supports `data:image/xxx;base64,` prefix) |\n| `format` | No | string | Output format: `webp`, `jpg`, `png`, `avif`, `heif`, `tpg` |\n| `quality` | No | number | Compression quality 1-100 (default: 75) |\n| `width` | No | number | Target width in pixels (maintains aspect ratio) |\n| `height` | No | number | Target height in pixels (maintains aspect ratio) |\n| `mode` | No | string | Response type: `url` (default) or `base64` |\n\n### Response Format\n\n```json\n{\n  \"code\": 1000,\n  \"message\": \"success\",\n  \"data\": {\n    \"originalUrl\": \"https://bucket.cos.region.myqcloud.com/image.jpg\",\n    \"compressedUrl\": \"https://bucket.cos.region.myqcloud.com/image.jpg?imageMogr2/format/webp/quality/75\",\n    \"originalSize\": 1024000,\n    \"compressedSize\": 256000,\n    \"format\": \"webp\",\n    \"quality\": 75,\n    \"width\": 800,\n    \"height\": 600\n  }\n}\n```\n\n## Supported Formats\n\n**Input**: JPG, JPEG, PNG, WebP, GIF, BMP, HEIC, HEIF\n**Output**: `webp`, `jpg`, `png`, `avif`, `heif`, `tpg`\n\n## CLI Options\n\n| Option | Short | Type | Default | Description |\n|--------|-------|------|---------|-------------|\n| `--url` | `-u` | string | — | Image URL to compress |\n| `--file` | `-f` | string | — | Local image file path |\n| `--dir` | `-d` | string | — | Directory for batch processing |\n| `--format` | | string | original | Output: webp, jpg, png, avif, heif, tpg |\n| `--quality` | `-q` | number | 75 | Quality 1-100 |\n| `--width` | `-w` | number | — | Target width (maintain ratio) |\n| `--height` | | number | — | Target height (maintain ratio) |\n| `--preset` | `-p` | string | — | web, wechat, email, quality, thumbnail |\n| `--output` | `-o` | string | auto | Output directory |\n| `--recursive` | `-r` | boolean | false | Process subdirectories |\n| `--mode` | | string | url | Response: url or base64 |\n\n## Output Rules\n\n- Compressed files saved to `~/Downloads/compressed-images/{date}/` by default\n- Original files are **never** modified or overwritten\n- Duplicate filenames auto-numbered: `photo_001.jpg`, `photo_002.jpg`\n- Batch mode preserves original directory structure\n\n## Guidelines\n\n1. For local files, the script auto-reads and converts to Base64 for upload\n2. Default to quality 75 — good balance of quality and size\n3. Match presets to use cases: `web` for sites, `wechat` for sharing, `email` for attachments\n4. When resizing, specify only one dimension to maintain aspect ratio\n5. For batch processing, show progress and total savings summary\n6. After compression, always show before/after size and savings percentage\n7. Prefer `webp` for web — best compression with good quality\n8. For photos: recommend `jpg` or `webp`; for screenshots/diagrams: `png` or `webp`\n9. HEIC (iPhone) photos are natively supported — no extra dependencies needed\n\nFile v1.1.2:_meta.json\n\n{\n  \"ownerId\": \"kn78d1khbws6fcy1abp0y0hpgd840v58\",\n  \"slug\": \"pixmind-image-compress\",\n  \"version\": \"1.1.2\",\n  \"publishedAt\": 1786330795735\n}\n\nFile v1.1.2:skill-card.md\n\n## Description:\n\nCloud-powered image compression and resizing for JPG, PNG, WebP, HEIC, and related formats, with Pixmind API-backed compression, format conversion, quality control, scene presets, and batch processing.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[fuyunzhishang](https://clawhub.ai/user/fuyunzhishang)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nDevelopers, designers, and content operators use this skill to compress, resize, convert, and batch-process selected image files or image URLs for web, social sharing, email, thumbnails, or archival workflows.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Selected images, and potentially whole selected folders in batch mode, are sent to Pixmind/Tencent Cloud-backed processing.\n\nMitigation: Use only with images that are acceptable for cloud handling; avoid confidential, regulated, or private screenshots and photos unless that processing is approved.\n\nRisk: Batch processing can upload more files than intended if the selected directory or recursive option is too broad.\n\nMitigation: Review the target directory and recursive flag before running, and limit input paths to the intended image set.\n\nRisk: The skill requires a Pixmind API key for authenticated API calls.\n\nMitigation: Store PIXMIND_API_KEY in an environment variable or secret store, and do not commit or print the credential.\n\nRisk: Compression, resizing, or format conversion can reduce image quality or change output compatibility.\n\nMitigation: Keep originals, review generated files before replacing workflow assets, and use the quality preset or higher quality values when preservation matters.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/fuyunzhishang/skills/pixmind-image-compress)\n- [Pixmind](https://www.pixmind.io)\n- [Pixmind API Platform dashboard](https://www.pixmind.io/api-platform/dashboard/keys)\n- [Tencent Cloud COS imageMogr2](https://cloud.tencent.com/document/product/460/36540)\n- [Pixmind image compression API endpoint](https://aihub-admin.aimix.pro/api-platform/v1/image/compress)\n\n## Skill Output:\n\n**Output Type(s):** [Files, Shell commands, Guidance]\n\n**Output Format:** [Compressed image files with terminal status summaries and Markdown command examples]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Requires PIXMIND_API_KEY; saves compressed images to a selected output directory or ~/Downloads/compressed-images/{date}; originals are not overwritten.]\n\n## Skill Version(s):\n\n1.1.2 (source: server release evidence)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nArchive v1.1.1: 4 files, 8104 bytes\n\nFiles: compress.js (9324b), skill-card.md (2164b), SKILL.md (6663b), _meta.json (141b)\n\nFile v1.1.1:SKILL.md\n\n---\nname: pixmind-image-compress\ndescription: \"Cloud-powered image compression and resize — compress JPG/PNG/WebP/HEIC to WebP/AVIF, resize images, batch process folders. No local dependencies, uses Tencent Cloud COS imageMogr2 via Pixmind API. Save 60-90% file size with scene presets (web, wechat, email, thumbnail). Supports format conversion, quality control, and dimension adjustment.\"\nmetadata: {\"openclaw\": {\"requires\": {\"env\": [\"PIXMIND_API_KEY\"]}, \"primaryEnv\": \"PIXMIND_API_KEY\"}}\n---\n\n# Pixmind Image Compress\n\nCloud-powered image compression and resize. Compress JPG, PNG, WebP, HEIC photos to WebP, AVIF or smaller JPG — save 60-90% file size with zero local dependencies.\n\nPowered by [Pixmind](https://www.pixmind.io) + Tencent Cloud COS [imageMogr2](https://cloud.tencent.com/document/product/460/36540).\n\n## Why this skill?\n\n- **Zero install** — No sharp, ImageMagick, or native modules. Runs on any platform with just an API key.\n- **Cloud-processed** — Handles HEIC, AVIF, TPG formats that local tools struggle with.\n- **Scene presets** — One command for web, WeChat, email, or archival use.\n- **Batch ready** — Compress entire folders recursively.\n- **Safe by default** — Never overwrites originals, auto-numbered output.\n\n## When to use\n\n**Use this skill when the user mentions:**\n\n1. **Compress** — \"图片太大\"、\"压缩一下\"、\"缩小文件\"、\"reduce image size\"、\"compress photo\"、\"file too large\"\n2. **Format conversion** — \"转成 JPG\"、\"PNG 转 WebP\"、\"HEIC 转 JPG\"、\"convert to webp\"、\"change format\"\n3. **Resize** — \"缩小到 1920px\"、\"调整尺寸\"、\"resize image\"、\"reduce dimensions\"、\"scale down\"\n4. **Batch** — \"批量压缩\"、\"处理这个文件夹\"、\"compress all images\"、\"batch resize\"\n5. **Scene optimization** — \"用于邮件附件\"、\"上传网站\"、\"微信发送\"、\"optimize for web\"、\"shrink for email\"\n6. **Typical triggers**:\n   - \"帮我压缩这张图片，文件太大了发不了微信\"\n   - \"Screenshot.png is 10MB, make it smaller\"\n   - \"Convert all PNGs in this folder to WebP\"\n   - \"Resize these photos to max 1920px width\"\n\n**Do NOT trigger for:**\n- Image generation (use `pixmind-image` skill)\n- Image editing (crop, rotate, watermark, filters)\n- Image analysis (OCR, content recognition, EXIF reading)\n\n## Prerequisites\n\n1. Register at [pixmind.io](https://www.pixmind.io/) — **200 bonus points on signup** (free trial)\n2. Create an API key in the [API Platform dashboard](https://www.pixmind.io/api-platform/dashboard/keys)\n3. Set env `PIXMIND_API_KEY` with your key\n\n## Quick Start\n\n```bash\n# Compress a single image (local file)\nnode {baseDir}/compress.js --file ~/Desktop/photo.png --preset web\n\n# Compress from URL\nnode {baseDir}/compress.js --url https://example.com/image.jpg --quality 80 --format webp\n\n# Resize to max 1920px width\nnode {baseDir}/compress.js --file photo.jpg --width 1920\n\n# Batch compress a folder\nnode {baseDir}/compress.js --dir ~/Pictures/ --preset web --recursive\n```\n\n## Presets\n\nQuick scene-based compression — no need to remember quality numbers:\n\n| Preset | Quality | Format | Use Case | Savings |\n|--------|---------|--------|----------|---------|\n| `web` | 75 | WebP | Website, blog, CMS upload | 60-70% |\n| `wechat` | 65 | JPG | WeChat, social media sharing | 70-80% |\n| `email` | 55 | JPG | Email attachments, fast transfer | 80-90% |\n| `quality` | 95 | original | High-quality archiving, print | 30-40% |\n| `thumbnail` | 60 | WebP | Thumbnails, previews, avatars | 80-90% |\n\n## API Details\n\n**Endpoint**: `POST https://aihub-admin.aimix.pro/api-platform/v1/image/compress`\n**Auth**: Header `Authorization: Bearer {API_KEY}`\n\n### Request Body (JSON)\n\n| Parameter | Required | Type | Description |\n|-----------|----------|------|-------------|\n| `imageUrl` | One of | string | Image URL (COS or external link) |\n| `imageBase64` | One of | string | Base64 image data (supports `data:image/xxx;base64,` prefix) |\n| `format` | No | string | Output format: `webp`, `jpg`, `png`, `avif`, `heif`, `tpg` |\n| `quality` | No | number | Compression quality 1-100 (default: 75) |\n| `width` | No | number | Target width in pixels (maintains aspect ratio) |\n| `height` | No | number | Target height in pixels (maintains aspect ratio) |\n| `mode` | No | string | Response type: `url` (default) or `base64` |\n\n### Response Format\n\n```json\n{\n  \"code\": 1000,\n  \"message\": \"success\",\n  \"data\": {\n    \"originalUrl\": \"https://bucket.cos.region.myqcloud.com/image.jpg\",\n    \"compressedUrl\": \"https://bucket.cos.region.myqcloud.com/image.jpg?imageMogr2/format/webp/quality/75\",\n    \"originalSize\": 1024000,\n    \"compressedSize\": 256000,\n    \"format\": \"webp\",\n    \"quality\": 75,\n    \"width\": 800,\n    \"height\": 600\n  }\n}\n```\n\n## Supported Formats\n\n**Input**: JPG, JPEG, PNG, WebP, GIF, BMP, HEIC, HEIF\n**Output**: `webp`, `jpg`, `png`, `avif`, `heif`, `tpg`\n\n## CLI Options\n\n| Option | Short | Type | Default | Description |\n|--------|-------|------|---------|-------------|\n| `--url` | `-u` | string | — | Image URL to compress |\n| `--file` | `-f` | string | — | Local image file path |\n| `--dir` | `-d` | string | — | Directory for batch processing |\n| `--format` | | string | original | Output: webp, jpg, png, avif, heif, tpg |\n| `--quality` | `-q` | number | 75 | Quality 1-100 |\n| `--width` | `-w` | number | — | Target width (maintain ratio) |\n| `--height` | | number | — | Target height (maintain ratio) |\n| `--preset` | `-p` | string | — | web, wechat, email, quality, thumbnail |\n| `--output` | `-o` | string | auto | Output directory |\n| `--recursive` | `-r` | boolean | false | Process subdirectories |\n| `--mode` | | string | url | Response: url or base64 |\n\n## Output Rules\n\n- Compressed files saved to `~/Downloads/compressed-images/{date}/` by default\n- Original files are **never** modified or overwritten\n- Duplicate filenames auto-numbered: `photo_001.jpg`, `photo_002.jpg`\n- Batch mode preserves original directory structure\n\n## Guidelines\n\n1. For local files, the script auto-reads and converts to Base64 for upload\n2. Default to quality 75 — good balance of quality and size\n3. Match presets to use cases: `web` for sites, `wechat` for sharing, `email` for attachments\n4. When resizing, specify only one dimension to maintain aspect ratio\n5. For batch processing, show progress and total savings summary\n6. After compression, always show before/after size and savings percentage\n7. Prefer `webp` for web — best compression with good quality\n8. For photos: recommend `jpg` or `webp`; for screenshots/diagrams: `png` or `webp`\n9. HEIC (iPhone) photos are natively supported — no extra dependencies needed\n\nFile v1.1.1:_meta.json\n\n{\n  \"ownerId\": \"kn78d1khbws6fcy1abp0y0hpgd840v58\",\n  \"slug\": \"pixmind-image-compress\",\n  \"version\": \"1.1.1\",\n  \"publishedAt\": 1786330755950\n}\n\nFile v1.1.1:skill-card.md\n\n## Description:\n\nCloud-powered image compression and resize -- compress JPG/PNG/WebP/HEIC to WebP/AVIF, resize images, batch process folders.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[fuyunzhishang](https://clawhub.ai/user/fuyunzhishang)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users, developers, and content teams use this skill to compress, resize, and convert image files or folders through the Pixmind API for web, social, email, thumbnail, or archive workflows.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Selected image files, image URLs, and folder batches are sent to Pixmind/Tencent Cloud for compression.\n\nMitigation: Use the skill only for images approved for third-party cloud processing, and avoid confidential, regulated, or highly personal images unless that processing is acceptable.\n\nRisk: The skill requires a Pixmind API key to call the compression service.\n\nMitigation: Provide the key through the PIXMIND_API_KEY environment variable and manage it as a credential.\n\n## Reference(s):\n\n- [Pixmind](https://www.pixmind.io)\n- [Pixmind API Platform dashboard](https://www.pixmind.io/api-platform/dashboard/keys)\n- [Tencent Cloud COS imageMogr2](https://cloud.tencent.com/document/product/460/36540)\n- [ClawHub skill page](https://clawhub.ai/fuyunzhishang/skills/pixmind-image-compress)\n- [Publisher profile](https://clawhub.ai/user/fuyunzhishang)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, shell commands, configuration, files, API calls]\n\n**Output Format:** [Markdown guidance with shell commands and local compressed image files]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Requires PIXMIND_API_KEY; selected local images or image URLs are sent to Pixmind/Tencent Cloud for compression.]\n\n## Skill Version(s):\n\n1.1.1 (source: server release evidence)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nArchive v1.1.0: 4 files, 8481 bytes\n\nFiles: compress.js (9965b), skill-card.md (2344b), SKILL.md (6663b), _meta.json (141b)\n\nFile v1.1.0:SKILL.md\n\n---\nname: pixmind-image-compress\ndescription: \"Cloud-powered image compression and resize — compress JPG/PNG/WebP/HEIC to WebP/AVIF, resize images, batch process folders. No local dependencies, uses Tencent Cloud COS imageMogr2 via Pixmind API. Save 60-90% file size with scene presets (web, wechat, email, thumbnail). Supports format conversion, quality control, and dimension adjustment.\"\nmetadata: {\"openclaw\": {\"requires\": {\"env\": [\"PIXMIND_API_KEY\"]}, \"primaryEnv\": \"PIXMIND_API_KEY\"}}\n---\n\n# Pixmind Image Compress\n\nCloud-powered image compression and resize. Compress JPG, PNG, WebP, HEIC photos to WebP, AVIF or smaller JPG — save 60-90% file size with zero local dependencies.\n\nPowered by [Pixmind](https://www.pixmind.io) + Tencent Cloud COS [imageMogr2](https://cloud.tencent.com/document/product/460/36540).\n\n## Why this skill?\n\n- **Zero install** — No sharp, ImageMagick, or native modules. Runs on any platform with just an API key.\n- **Cloud-processed** — Handles HEIC, AVIF, TPG formats that local tools struggle with.\n- **Scene presets** — One command for web, WeChat, email, or archival use.\n- **Batch ready** — Compress entire folders recursively.\n- **Safe by default** — Never overwrites originals, auto-numbered output.\n\n## When to use\n\n**Use this skill when the user mentions:**\n\n1. **Compress** — \"图片太大\"、\"压缩一下\"、\"缩小文件\"、\"reduce image size\"、\"compress photo\"、\"file too large\"\n2. **Format conversion** — \"转成 JPG\"、\"PNG 转 WebP\"、\"HEIC 转 JPG\"、\"convert to webp\"、\"change format\"\n3. **Resize** — \"缩小到 1920px\"、\"调整尺寸\"、\"resize image\"、\"reduce dimensions\"、\"scale down\"\n4. **Batch** — \"批量压缩\"、\"处理这个文件夹\"、\"compress all images\"、\"batch resize\"\n5. **Scene optimization** — \"用于邮件附件\"、\"上传网站\"、\"微信发送\"、\"optimize for web\"、\"shrink for email\"\n6. **Typical triggers**:\n   - \"帮我压缩这张图片，文件太大了发不了微信\"\n   - \"Screenshot.png is 10MB, make it smaller\"\n   - \"Convert all PNGs in this folder to WebP\"\n   - \"Resize these photos to max 1920px width\"\n\n**Do NOT trigger for:**\n- Image generation (use `pixmind-image` skill)\n- Image editing (crop, rotate, watermark, filters)\n- Image analysis (OCR, content recognition, EXIF reading)\n\n## Prerequisites\n\n1. Register at [pixmind.io](https://www.pixmind.io/) — **200 bonus points on signup** (free trial)\n2. Create an API key in the [API Platform dashboard](https://www.pixmind.io/api-platform/dashboard/keys)\n3. Set env `PIXMIND_API_KEY` with your key\n\n## Quick Start\n\n```bash\n# Compress a single image (local file)\nnode {baseDir}/compress.js --file ~/Desktop/photo.png --preset web\n\n# Compress from URL\nnode {baseDir}/compress.js --url https://example.com/image.jpg --quality 80 --format webp\n\n# Resize to max 1920px width\nnode {baseDir}/compress.js --file photo.jpg --width 1920\n\n# Batch compress a folder\nnode {baseDir}/compress.js --dir ~/Pictures/ --preset web --recursive\n```\n\n## Presets\n\nQuick scene-based compression — no need to remember quality numbers:\n\n| Preset | Quality | Format | Use Case | Savings |\n|--------|---------|--------|----------|---------|\n| `web` | 75 | WebP | Website, blog, CMS upload | 60-70% |\n| `wechat` | 65 | JPG | WeChat, social media sharing | 70-80% |\n| `email` | 55 | JPG | Email attachments, fast transfer | 80-90% |\n| `quality` | 95 | original | High-quality archiving, print | 30-40% |\n| `thumbnail` | 60 | WebP | Thumbnails, previews, avatars | 80-90% |\n\n## API Details\n\n**Endpoint**: `POST https://aihub-admin.aimix.pro/api-platform/v1/image/compress`\n**Auth**: Header `Authorization: Bearer {API_KEY}`\n\n### Request Body (JSON)\n\n| Parameter | Required | Type | Description |\n|-----------|----------|------|-------------|\n| `imageUrl` | One of | string | Image URL (COS or external link) |\n| `imageBase64` | One of | string | Base64 image data (supports `data:image/xxx;base64,` prefix) |\n| `format` | No | string | Output format: `webp`, `jpg`, `png`, `avif`, `heif`, `tpg` |\n| `quality` | No | number | Compression quality 1-100 (default: 75) |\n| `width` | No | number | Target width in pixels (maintains aspect ratio) |\n| `height` | No | number | Target height in pixels (maintains aspect ratio) |\n| `mode` | No | string | Response type: `url` (default) or `base64` |\n\n### Response Format\n\n```json\n{\n  \"code\": 1000,\n  \"message\": \"success\",\n  \"data\": {\n    \"originalUrl\": \"https://bucket.cos.region.myqcloud.com/image.jpg\",\n    \"compressedUrl\": \"https://bucket.cos.region.myqcloud.com/image.jpg?imageMogr2/format/webp/quality/75\",\n    \"originalSize\": 1024000,\n    \"compressedSize\": 256000,\n    \"format\": \"webp\",\n    \"quality\": 75,\n    \"width\": 800,\n    \"height\": 600\n  }\n}\n```\n\n## Supported Formats\n\n**Input**: JPG, JPEG, PNG, WebP, GIF, BMP, HEIC, HEIF\n**Output**: `webp`, `jpg`, `png`, `avif`, `heif`, `tpg`\n\n## CLI Options\n\n| Option | Short | Type | Default | Description |\n|--------|-------|------|---------|-------------|\n| `--url` | `-u` | string | — | Image URL to compress |\n| `--file` | `-f` | string | — | Local image file path |\n| `--dir` | `-d` | string | — | Directory for batch processing |\n| `--format` | | string | original | Output: webp, jpg, png, avif, heif, tpg |\n| `--quality` | `-q` | number | 75 | Quality 1-100 |\n| `--width` | `-w` | number | — | Target width (maintain ratio) |\n| `--height` | | number | — | Target height (maintain ratio) |\n| `--preset` | `-p` | string | — | web, wechat, email, quality, thumbnail |\n| `--output` | `-o` | string | auto | Output directory |\n| `--recursive` | `-r` | boolean | false | Process subdirectories |\n| `--mode` | | string | url | Response: url or base64 |\n\n## Output Rules\n\n- Compressed files saved to `~/Downloads/compressed-images/{date}/` by default\n- Original files are **never** modified or overwritten\n- Duplicate filenames auto-numbered: `photo_001.jpg`, `photo_002.jpg`\n- Batch mode preserves original directory structure\n\n## Guidelines\n\n1. For local files, the script auto-reads and converts to Base64 for upload\n2. Default to quality 75 — good balance of quality and size\n3. Match presets to use cases: `web` for sites, `wechat` for sharing, `email` for attachments\n4. When resizing, specify only one dimension to maintain aspect ratio\n5. For batch processing, show progress and total savings summary\n6. After compression, always show before/after size and savings percentage\n7. Prefer `webp` for web — best compression with good quality\n8. For photos: recommend `jpg` or `webp`; for screenshots/diagrams: `png` or `webp`\n9. HEIC (iPhone) photos are natively supported — no extra dependencies needed\n\nFile v1.1.0:_meta.json\n\n{\n  \"ownerId\": \"kn78d1khbws6fcy1abp0y0hpgd840v58\",\n  \"slug\": \"pixmind-image-compress\",\n  \"version\": \"1.1.0\",\n  \"publishedAt\": 1786330685682\n}\n\nFile v1.1.0:skill-card.md\n\n## Description:\n\nCloud-powered image compression and resize for JPG, PNG, WebP, and HEIC files, with WebP/AVIF conversion, batch folder processing, presets, quality control, and dimension adjustment through the Pixmind API.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[fuyunzhishang](https://clawhub.ai/user/fuyunzhishang)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nDevelopers, designers, and content operators use this skill to compress, resize, and convert local or URL-based images for web publishing, social sharing, email attachments, thumbnails, and batch folder workflows.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Selected images, including files from batch-selected folders, are uploaded to the Pixmind/Aimix cloud service for processing.\n\nMitigation: Use the skill only for images approved for cloud processing, and avoid sensitive screenshots, personal documents, or private photos unless that data sharing is acceptable.\n\nRisk: The skill requires PIXMIND_API_KEY to call the Pixmind API.\n\nMitigation: Store the key in the environment or a local .env file and avoid sharing it in prompts, logs, or checked-in files.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/fuyunzhishang/skills/pixmind-image-compress)\n- [Pixmind](https://www.pixmind.io)\n- [Pixmind API Platform dashboard](https://www.pixmind.io/api-platform/dashboard/keys)\n- [Tencent Cloud COS imageMogr2 documentation](https://cloud.tencent.com/document/product/460/36540)\n- [Pixmind image compression API endpoint](https://aihub-admin.aimix.pro/api-platform/v1/image/compress)\n\n## Skill Output:\n\n**Output Type(s):** [Shell commands, Files, Configuration instructions, Guidance]\n\n**Output Format:** [Markdown with inline bash commands and saved image files]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Requires PIXMIND_API_KEY; writes compressed images to a chosen output directory or ~/Downloads/compressed-images/<date> by default.]\n\n## Skill Version(s):\n\n1.1.0 (source: release evidence)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nArchive v1.0.1: 4 files, 8380 bytes\n\nFiles: compress.js (9942b), skill-card.md (2267b), SKILL.md (6679b), _meta.json (141b)\n\nFile v1.0.1:SKILL.md\n\n---\nname: pixmind-image-compress\ndescription: \"Cloud-powered image compression and resize — compress JPG/PNG/WebP/HEIC to WebP/AVIF, resize images, batch process folders. No local dependencies, uses Tencent Cloud COS imageMogr2 via Pixmind API. Save 60-90% file size with scene presets (web, wechat, email, thumbnail). Supports format conversion, quality control, and dimension adjustment.\"\nhomepage: https://www.pixmind.io\nmetadata: {\"openclaw\": {\"requires\": {\"env\": [\"PIXMIND_API_KEY\"]}, \"primaryEnv\": \"PIXMIND_API_KEY\"}}\n---\n\n# Pixmind Image Compress\n\nCloud-powered image compression and resize. Compress JPG, PNG, WebP, HEIC photos to WebP, AVIF or smaller JPG — save 60-90% file size with zero local dependencies.\n\nPowered by [Pixmind](https://www.pixmind.io) + Tencent Cloud COS [imageMogr2](https://cloud.tencent.com/document/product/460/36540).\n\n## Why this skill?\n\n- **Zero install** — No sharp, ImageMagick, or native modules. Runs on any platform with just an API key.\n- **Cloud-processed** — Handles HEIC, AVIF, TPG formats that local tools struggle with.\n- **Scene presets** — One command for web, WeChat, email, or archival use.\n- **Batch ready** — Compress entire folders recursively.\n- **Safe by default** — Never overwrites originals, auto-numbered output.\n\n## When to use\n\n**Use this skill when the user mentions:**\n\n1. **Compress** — \"图片太大\"、\"压缩一下\"、\"缩小文件\"、\"reduce image size\"、\"compress photo\"、\"file too large\"\n2. **Format conversion** — \"转成 JPG\"、\"PNG 转 WebP\"、\"HEIC 转 JPG\"、\"convert to webp\"、\"change format\"\n3. **Resize** — \"缩小到 1920px\"、\"调整尺寸\"、\"resize image\"、\"reduce dimensions\"、\"scale down\"\n4. **Batch** — \"批量压缩\"、\"处理这个文件夹\"、\"compress all images\"、\"batch resize\"\n5. **Scene optimization** — \"用于邮件附件\"、\"上传网站\"、\"微信发送\"、\"optimize for web\"、\"shrink for email\"\n6. **Typical triggers**:\n   - \"帮我压缩这张图片，文件太大了发不了微信\"\n   - \"Screenshot.png is 10MB, make it smaller\"\n   - \"Convert all PNGs in this folder to WebP\"\n   - \"Resize these photos to max 1920px width\"\n\n**Do NOT trigger for:**\n- Image generation (use `pixmind-image` skill)\n- Image editing (crop, rotate, watermark, filters)\n- Image analysis (OCR, content recognition, EXIF reading)\n\n## Prerequisites\n\n1. Register at [pixmind.io](https://www.pixmind.io/) — **200 bonus points on signup** (free trial)\n2. Create an API key at [pixmind.io/api-keys](https://www.pixmind.io/api-keys)\n3. Set env `PIXMIND_API_KEY` with your key\n\n## Quick Start\n\n```bash\n# Compress a single image (local file)\nnode {baseDir}/compress.js --file ~/Desktop/photo.png --preset web\n\n# Compress from URL\nnode {baseDir}/compress.js --url https://example.com/image.jpg --quality 80 --format webp\n\n# Resize to max 1920px width\nnode {baseDir}/compress.js --file photo.jpg --width 1920\n\n# Batch compress a folder\nnode {baseDir}/compress.js --dir ~/Pictures/ --preset web --recursive\n```\n\n## Presets\n\nQuick scene-based compression — no need to remember quality numbers:\n\n| Preset | Quality | Format | Use Case | Savings |\n|--------|---------|--------|----------|---------|\n| `web` | 75 | WebP | Website, blog, CMS upload | 60-70% |\n| `wechat` | 65 | JPG | WeChat, social media sharing | 70-80% |\n| `email` | 55 | JPG | Email attachments, fast transfer | 80-90% |\n| `quality` | 95 | original | High-quality archiving, print | 30-40% |\n| `thumbnail` | 60 | WebP | Thumbnails, previews, avatars | 80-90% |\n\n## API Details\n\n**Endpoint**: `POST https://aihub-admin.aimix.pro/open/cos/image/compress`\n**Auth**: Header `X-API-Key: {API_KEY}` and `X-App-Key: {APP_KEY}`\n\n### Request Body (JSON)\n\n| Parameter | Required | Type | Description |\n|-----------|----------|------|-------------|\n| `imageUrl` | One of | string | Image URL (COS or external link) |\n| `imageBase64` | One of | string | Base64 image data (supports `data:image/xxx;base64,` prefix) |\n| `format` | No | string | Output format: `webp`, `jpg`, `png`, `avif`, `heif`, `tpg` |\n| `quality` | No | number | Compression quality 1-100 (default: 75) |\n| `width` | No | number | Target width in pixels (maintains aspect ratio) |\n| `height` | No | number | Target height in pixels (maintains aspect ratio) |\n| `mode` | No | string | Response type: `url` (default) or `base64` |\n\n### Response Format\n\n```json\n{\n  \"code\": 1000,\n  \"message\": \"success\",\n  \"data\": {\n    \"originalUrl\": \"https://bucket.cos.region.myqcloud.com/image.jpg\",\n    \"compressedUrl\": \"https://bucket.cos.region.myqcloud.com/image.jpg?imageMogr2/format/webp/quality/75\",\n    \"originalSize\": 1024000,\n    \"compressedSize\": 256000,\n    \"format\": \"webp\",\n    \"quality\": 75,\n    \"width\": 800,\n    \"height\": 600\n  }\n}\n```\n\n## Supported Formats\n\n**Input**: JPG, JPEG, PNG, WebP, GIF, BMP, HEIC, HEIF\n**Output**: `webp`, `jpg`, `png`, `avif`, `heif`, `tpg`\n\n## CLI Options\n\n| Option | Short | Type | Default | Description |\n|--------|-------|------|---------|-------------|\n| `--url` | `-u` | string | — | Image URL to compress |\n| `--file` | `-f` | string | — | Local image file path |\n| `--dir` | `-d` | string | — | Directory for batch processing |\n| `--format` | | string | original | Output: webp, jpg, png, avif, heif, tpg |\n| `--quality` | `-q` | number | 75 | Quality 1-100 |\n| `--width` | `-w` | number | — | Target width (maintain ratio) |\n| `--height` | | number | — | Target height (maintain ratio) |\n| `--preset` | `-p` | string | — | web, wechat, email, quality, thumbnail |\n| `--output` | `-o` | string | auto | Output directory |\n| `--recursive` | `-r` | boolean | false | Process subdirectories |\n| `--mode` | | string | url | Response: url or base64 |\n\n## Output Rules\n\n- Compressed files saved to `~/Downloads/compressed-images/{date}/` by default\n- Original files are **never** modified or overwritten\n- Duplicate filenames auto-numbered: `photo_001.jpg`, `photo_002.jpg`\n- Batch mode preserves original directory structure\n\n## Guidelines\n\n1. For local files, the script auto-reads and converts to Base64 for upload\n2. Default to quality 75 — good balance of quality and size\n3. Match presets to use cases: `web` for sites, `wechat` for sharing, `email` for attachments\n4. When resizing, specify only one dimension to maintain aspect ratio\n5. For batch processing, show progress and total savings summary\n6. After compression, always show before/after size and savings percentage\n7. Prefer `webp` for web — best compression with good quality\n8. For photos: recommend `jpg` or `webp`; for screenshots/diagrams: `png` or `webp`\n9. HEIC (iPhone) photos are natively supported — no extra dependencies needed\n\nFile v1.0.1:_meta.json\n\n{\n  \"ownerId\": \"kn78d1khbws6fcy1abp0y0hpgd840v58\",\n  \"slug\": \"pixmind-image-compress\",\n  \"version\": \"1.0.1\",\n  \"publishedAt\": 1777695574971\n}\n\nFile v1.0.1:skill-card.md\n\n## Description: <br>\nCloud-powered image compression and resize for JPG, PNG, WebP, and HEIC images using Pixmind's API and Tencent Cloud COS imageMogr2. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[fuyunzhishang](https://clawhub.ai/user/fuyunzhishang) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nDevelopers, designers, and content operators use this skill to compress, resize, convert, and batch-process images for websites, social sharing, email, thumbnails, and archival workflows. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill uploads user-selected images to Pixmind/Tencent Cloud for processing. <br>\nMitigation: Use it only for images acceptable to send to that provider and avoid confidential, regulated, or sensitive personal material unless provider terms and policy allow it. <br>\nRisk: The skill requires a Pixmind API key. <br>\nMitigation: Use a dedicated, revocable key through PIXMIND_API_KEY and rotate it if exposed. <br>\nRisk: Recursive batch processing can upload more files than intended. <br>\nMitigation: Review folder scope before running batch commands with recursive processing. <br>\n\n\n## Reference(s): <br>\n- [Pixmind](https://www.pixmind.io) <br>\n- [Pixmind API Keys](https://www.pixmind.io/api-keys) <br>\n- [Tencent Cloud COS imageMogr2](https://cloud.tencent.com/document/product/460/36540) <br>\n- [ClawHub Skill Page](https://clawhub.ai/fuyunzhishang/pixmind-image-compress) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance] <br>\n**Output Format:** [Markdown with inline shell commands and concise status summaries] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May create compressed image files in a local output directory when the generated command is executed.] <br>\n\n## Skill Version(s): <br>\n1.0.1 (source: server release metadata) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nArchive v1.0.0: 3 files, 7130 bytes\n\nFiles: compress.js (9934b), SKILL.md (6660b), _meta.json (141b)\n\nFile v1.0.0:SKILL.md\n\n---\nname: pixmind-image-compress\ndescription: \"Cloud-powered image compression and resize — compress JPG/PNG/WebP/HEIC to WebP/AVIF, resize images, batch process folders. No local dependencies, uses Tencent Cloud COS imageMogr2 via Pixmind API. Save 60-90% file size with scene presets (web, wechat, email, thumbnail). Supports format conversion, quality control, and dimension adjustment.\"\nhomepage: https://www.pixmind.io\nmetadata: {\"openclaw\": {\"requires\": {\"env\": [\"PIXMIND_API_KEY\"]}, \"primaryEnv\": \"PIXMIND_API_KEY\"}}\n---\n\n# Pixmind Image Compress\n\nCloud-powered image compression and resize. Compress JPG, PNG, WebP, HEIC photos to WebP, AVIF or smaller JPG — save 60-90% file size with zero local dependencies.\n\nPowered by [Pixmind](https://www.pixmind.io) + Tencent Cloud COS [imageMogr2](https://cloud.tencent.com/document/product/460/36540).\n\n## Why this skill?\n\n- **Zero install** — No sharp, ImageMagick, or native modules. Runs on any platform with just an API key.\n- **Cloud-processed** — Handles HEIC, AVIF, TPG formats that local tools struggle with.\n- **Scene presets** — One command for web, WeChat, email, or archival use.\n- **Batch ready** — Compress entire folders recursively.\n- **Safe by default** — Never overwrites originals, auto-numbered output.\n\n## When to use\n\n**Use this skill when the user mentions:**\n\n1. **Compress** — \"图片太大\"、\"压缩一下\"、\"缩小文件\"、\"reduce image size\"、\"compress photo\"、\"file too large\"\n2. **Format conversion** — \"转成 JPG\"、\"PNG 转 WebP\"、\"HEIC 转 JPG\"、\"convert to webp\"、\"change format\"\n3. **Resize** — \"缩小到 1920px\"、\"调整尺寸\"、\"resize image\"、\"reduce dimensions\"、\"scale down\"\n4. **Batch** — \"批量压缩\"、\"处理这个文件夹\"、\"compress all images\"、\"batch resize\"\n5. **Scene optimization** — \"用于邮件附件\"、\"上传网站\"、\"微信发送\"、\"optimize for web\"、\"shrink for email\"\n6. **Typical triggers**:\n   - \"帮我压缩这张图片，文件太大了发不了微信\"\n   - \"Screenshot.png is 10MB, make it smaller\"\n   - \"Convert all PNGs in this folder to WebP\"\n   - \"Resize these photos to max 1920px width\"\n\n**Do NOT trigger for:**\n- Image generation (use `pixmind-image` skill)\n- Image editing (crop, rotate, watermark, filters)\n- Image analysis (OCR, content recognition, EXIF reading)\n\n## Prerequisites\n\n1. Register at [pixmind.io](https://www.pixmind.io/) — **200 bonus points on signup** (free trial)\n2. Create an API key at [pixmind.io/api-keys](https://www.pixmind.io/api-keys)\n3. Set env `PIXMIND_API_KEY` with your key\n\n## Quick Start\n\n```bash\n# Compress a single image (local file)\nnode {baseDir}/compress.js --file ~/Desktop/photo.png --preset web\n\n# Compress from URL\nnode {baseDir}/compress.js --url https://example.com/image.jpg --quality 80 --format webp\n\n# Resize to max 1920px width\nnode {baseDir}/compress.js --file photo.jpg --width 1920\n\n# Batch compress a folder\nnode {baseDir}/compress.js --dir ~/Pictures/ --preset web --recursive\n```\n\n## Presets\n\nQuick scene-based compression — no need to remember quality numbers:\n\n| Preset | Quality | Format | Use Case | Savings |\n|--------|---------|--------|----------|---------|\n| `web` | 75 | WebP | Website, blog, CMS upload | 60-70% |\n| `wechat` | 65 | JPG | WeChat, social media sharing | 70-80% |\n| `email` | 55 | JPG | Email attachments, fast transfer | 80-90% |\n| `quality` | 95 | original | High-quality archiving, print | 30-40% |\n| `thumbnail` | 60 | WebP | Thumbnails, previews, avatars | 80-90% |\n\n## API Details\n\n**Endpoint**: `POST {API_BASE}/open/cos/image/compress`\n**Auth**: Header `X-API-Key: {API_KEY}` and `X-App-Key: {APP_KEY}`\n\n### Request Body (JSON)\n\n| Parameter | Required | Type | Description |\n|-----------|----------|------|-------------|\n| `imageUrl` | One of | string | Image URL (COS or external link) |\n| `imageBase64` | One of | string | Base64 image data (supports `data:image/xxx;base64,` prefix) |\n| `format` | No | string | Output format: `webp`, `jpg`, `png`, `avif`, `heif`, `tpg` |\n| `quality` | No | number | Compression quality 1-100 (default: 75) |\n| `width` | No | number | Target width in pixels (maintains aspect ratio) |\n| `height` | No | number | Target height in pixels (maintains aspect ratio) |\n| `mode` | No | string | Response type: `url` (default) or `base64` |\n\n### Response Format\n\n```json\n{\n  \"code\": 1000,\n  \"message\": \"success\",\n  \"data\": {\n    \"originalUrl\": \"https://bucket.cos.region.myqcloud.com/image.jpg\",\n    \"compressedUrl\": \"https://bucket.cos.region.myqcloud.com/image.jpg?imageMogr2/format/webp/quality/75\",\n    \"originalSize\": 1024000,\n    \"compressedSize\": 256000,\n    \"format\": \"webp\",\n    \"quality\": 75,\n    \"width\": 800,\n    \"height\": 600\n  }\n}\n```\n\n## Supported Formats\n\n**Input**: JPG, JPEG, PNG, WebP, GIF, BMP, HEIC, HEIF\n**Output**: `webp`, `jpg`, `png`, `avif`, `heif`, `tpg`\n\n## CLI Options\n\n| Option | Short | Type | Default | Description |\n|--------|-------|------|---------|-------------|\n| `--url` | `-u` | string | — | Image URL to compress |\n| `--file` | `-f` | string | — | Local image file path |\n| `--dir` | `-d` | string | — | Directory for batch processing |\n| `--format` | | string | original | Output: webp, jpg, png, avif, heif, tpg |\n| `--quality` | `-q` | number | 75 | Quality 1-100 |\n| `--width` | `-w` | number | — | Target width (maintain ratio) |\n| `--height` | | number | — | Target height (maintain ratio) |\n| `--preset` | `-p` | string | — | web, wechat, email, quality, thumbnail |\n| `--output` | `-o` | string | auto | Output directory |\n| `--recursive` | `-r` | boolean | false | Process subdirectories |\n| `--mode` | | string | url | Response: url or base64 |\n\n## Output Rules\n\n- Compressed files saved to `~/Downloads/compressed-images/{date}/` by default\n- Original files are **never** modified or overwritten\n- Duplicate filenames auto-numbered: `photo_001.jpg`, `photo_002.jpg`\n- Batch mode preserves original directory structure\n\n## Guidelines\n\n1. For local files, the script auto-reads and converts to Base64 for upload\n2. Default to quality 75 — good balance of quality and size\n3. Match presets to use cases: `web` for sites, `wechat` for sharing, `email` for attachments\n4. When resizing, specify only one dimension to maintain aspect ratio\n5. For batch processing, show progress and total savings summary\n6. After compression, always show before/after size and savings percentage\n7. Prefer `webp` for web — best compression with good quality\n8. For photos: recommend `jpg` or `webp`; for screenshots/diagrams: `png` or `webp`\n9. HEIC (iPhone) photos are natively supported — no extra dependencies needed\n\nFile v1.0.0:_meta.json\n\n{\n  \"ownerId\": \"kn78d1khbws6fcy1abp0y0hpgd840v58\",\n  \"slug\": \"pixmind-image-compress\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1777695060704\n}","readmeExcerpt":"Skill: pixmind-image-compress Owner: fuyunzhishang Summary: Cloud-powered image compression and resize — compress JPG/PNG/WebP/HEIC to WebP/AVIF, resize images, batch process folders. No local dependencies, uses Tencent Cloud COS imageMogr2 via Pixmind API. Save 60-90% file size with scene presets (web, wechat, email, thumbnail). Supports format conversion, quality control, and dimension adjustment. Tags: latest:1.1.","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"# Compress a single image (local file)\nnode {baseDir}/compress.js --file ~/Desktop/photo.png --preset web\n\n# Compress from URL\nnode {baseDir}/compress.js --url https://example.com/image.jpg --quality 80 --format webp\n\n# Resize to max 1920px width\nnode {baseDir}/compress.js --file photo.jpg --width 1920\n\n# Batch compress a folder\nnode {baseDir}/compress.js --dir ~/Pictures/ --preset web --recursive"},{"language":"json","snippet":"{\n  \"code\": 1000,\n  \"message\": \"success\",\n  \"data\": {\n    \"originalUrl\": \"https://bucket.cos.region.myqcloud.com/image.jpg\",\n    \"compressedUrl\": \"https://bucket.cos.region.myqcloud.com/image.jpg?imageMogr2/format/webp/quality/75\",\n    \"originalSize\": 1024000,\n    \"compressedSize\": 256000,\n    \"format\": \"webp\",\n    \"quality\": 75,\n    \"width\": 800,\n    \"height\": 600\n  }\n}"},{"language":"bash","snippet":"# Compress a single image (local file)\nnode {baseDir}/compress.js --file ~/Desktop/photo.png --preset web\n\n# Compress from URL\nnode {baseDir}/compress.js --url https://example.com/image.jpg --quality 80 --format webp\n\n# Resize to max 1920px width\nnode {baseDir}/compress.js --file photo.jpg --width 1920\n\n# Batch compress a folder\nnode {baseDir}/compress.js --dir ~/Pictures/ --preset web --recursive"},{"language":"json","snippet":"{\n  \"code\": 1000,\n  \"message\": \"success\",\n  \"data\": {\n    \"originalUrl\": \"https://bucket.cos.region.myqcloud.com/image.jpg\",\n    \"compressedUrl\": \"https://bucket.cos.region.myqcloud.com/image.jpg?imageMogr2/format/webp/quality/75\",\n    \"originalSize\": 1024000,\n    \"compressedSize\": 256000,\n    \"format\": \"webp\",\n    \"quality\": 75,\n    \"width\": 800,\n    \"height\": 600\n  }\n}"},{"language":"bash","snippet":"# Compress a single image (local file)\nnode {baseDir}/compress.js --file ~/Desktop/photo.png --preset web\n\n# Compress from URL\nnode {baseDir}/compress.js --url https://example.com/image.jpg --quality 80 --format webp\n\n# Resize to max 1920px width\nnode {baseDir}/compress.js --file photo.jpg --width 1920\n\n# Batch compress a folder\nnode {baseDir}/compress.js --dir ~/Pictures/ --preset web --recursive"},{"language":"json","snippet":"{\n  \"code\": 1000,\n  \"message\": \"success\",\n  \"data\": {\n    \"originalUrl\": \"https://bucket.cos.region.myqcloud.com/image.jpg\",\n    \"compressedUrl\": \"https://bucket.cos.region.myqcloud.com/image.jpg?imageMogr2/format/webp/quality/75\",\n    \"originalSize\": 1024000,\n    \"compressedSize\": 256000,\n    \"format\": \"webp\",\n    \"quality\": 75,\n    \"width\": 800,\n    \"height\": 600\n  }\n}"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: pixmind-image-compress\ndescription: \"Cloud-powered image compression and resize — compress JPG/PNG/WebP/HEIC to WebP/AVIF, resize images, batch process folders. No local dependencies, uses Tencent Cloud COS imageMogr2 via Pixmind API. Save 60-90% file size with scene presets (web, wechat, email, thumbnail). Supports format conversion, quality control, and dimension adjustment.\"\nmetadata: {\"openclaw\": {\"requires\": {\"env\": [\"PIXMIND_API_KEY\"]}, \"primaryEnv\": \"PIXMIND_API_KEY\"}}\n---\n\n# Pixmind Image Compress\n\nCloud-powered image compression and resize. Compress JPG, PNG, WebP, HEIC photos to WebP, AVIF or smaller JPG — save 60-90% file size with zero local dependencies.\n\nPowered by [Pixmind](https://www.pixmind.io) + Tencent Cloud COS [imageMogr2](https://cloud.tencent.com/document/product/460/36540).\n\n## Why this skill?\n\n- **Zero install** — No sharp, ImageMagick, or native modules. Runs on any platform with just an API key.\n- **Cloud-processed** — Handles HEIC, AVIF, TPG formats that local tools struggle with.\n- **Scene presets** — One command for web, WeChat, email, or archival use.\n- **Batch ready** — Compress entire folders recursively.\n- **Safe by default** — Never overwrites originals, auto-numbered output.\n\n## When to use\n\n**Use this skill when the user mentions:**\n\n1. **Compress** — \"图片太大\"、\"压缩一下\"、\"缩小文件\"、\"reduce image size\"、\"compress photo\"、\"file too large\"\n2. **Format conversion** — \"转成 JPG\"、\"PNG 转 WebP\"、\"HEIC 转 JPG\"、\"convert to webp\"、\"change format\"\n3. **Resize** — \"缩小到 1920px\"、\"调整尺寸\"、\"resize image\"、\"reduce dimensions\"、\"scale down\"\n4. **Batch** — \"批量压缩\"、\"处理这个文件夹\"、\"compress all images\"、\"batch resize\"\n5. **Scene optimization** — \"用于邮件附件\"、\"上传网站\"、\"微信发送\"、\"optimize for web\"、\"shrink for email\"\n6. **Typical triggers**:\n   - \"帮我压缩这张图片，文件太大了发不了微信\"\n   - \"Screenshot.png is 10MB, make it smaller\"\n   - \"Convert all PNGs in this folder to WebP\"\n   - \"Resize these photos to max 1920px width\"\n\n**Do NOT trigger for:**\n- Image generation (use `pixmind-image` skill)\n- Image editing (crop, rotate, watermark, filters)\n- Image analysis (OCR, content recognition, EXIF reading)\n\n## Prerequisites\n\n1. Register at [pixmind.io](https://www.pixmind.io/) — **200 bonus points on signup** (free trial)\n2. Create an API key in the [API Platform dashboard](https://www.pixmind.io/api-platform/dashboard/keys)\n3. Set env `PIXMIND_API_KEY` with your key\n\n## Quick Start\n\n```bash\n# Compress a single image (local file)\nnode {baseDir}/compress.js --file ~/Desktop/photo.png --preset web\n\n# Compress from URL\nnode {baseDir}/compress.js --url https://example.com/image.jpg --quality 80 --format webp\n\n# Resize to max 1920px width\nnode {baseDir}/compress.js --file photo.jpg --width 1920\n\n# Batch compress a folder\nnode {baseDir}/compress.js --dir ~/Pictures/ --preset web --recursive\n```\n\n## Presets\n\nQuick scene-based compression — no need to remember quality numbers:\n\n| Preset | Quality | Format | Use Case | Savings |\n|--------|---------|--------|----------|---------|\n| `web` | 75"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn78d1khbws6fcy1abp0y0hpgd840v58\",\n  \"slug\": \"pixmind-image-compress\",\n  \"version\": \"1.1.3\",\n  \"publishedAt\": 1786330847749\n}"},{"path":"skill-card.md","content":"## Description:\n\nCloud-powered image compression and resize: compress JPG/PNG/WebP/HEIC to WebP/AVIF, resize images, and batch process folders using Pixmind API and Tencent Cloud COS imageMogr2.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[fuyunzhishang](https://clawhub.ai/user/fuyunzhishang)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users, developers, and content teams use this skill to compress, resize, and convert individual images or image folders for web, social, email, thumbnail, and archival workflows.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Selected images are uploaded to Pixmind/Tencent-backed cloud processing.\n\nMitigation: Use the skill only for images that are appropriate to send to the cloud service, and confirm the input set before compression.\n\nRisk: Recursive batch mode can include more local files than intended, especially from untrusted archives or shared folders.\n\nMitigation: Avoid recursive batch mode on untrusted folders and review the files to be processed before running the command.\n\nRisk: Remote image download handling can access network locations beyond the original input.\n\nMitigation: Prefer trusted image URLs and review generated outputs before using or distributing them.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/fuyunzhishang/skills/pixmind-image-compress)\n- [Pixmind](https://www.pixmind.io)\n- [Tencent Cloud COS imageMogr2](https://cloud.tencent.com/document/product/460/36540)\n- [Pixmind API Platform Keys](https://www.pixmind.io/api-platform/dashboard/keys)\n\n## Skill Output:\n\n**Output Type(s):** [text, files, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown or plain text with inline shell commands; compressed image files are written to the configured output directory.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Requires PIXMIND_API_KEY. Local image inputs may be uploaded to Pixmind/Tencent-backed cloud processing.]\n\n## Skill Version(s):\n\n1.1.3 (source: server release metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment."}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":"Cloud-powered image compression and resize — compress JPG/PNG/WebP/HEIC to WebP/AVIF, resize images, batch process folders. No local dependencies, uses Tencent Cloud COS imageMogr2 via Pixmind API. Save 60-90% file size with scene presets (web, wechat, email, thumbnail). Supports format conversion, quality control, and dimension adjustment. Skill: pixmind-image-compress Owner: fuyunzhishang Summary: Cloud-powered image compression and resize — compress JPG/PNG/WebP/HEIC to WebP/AVIF, resize images, batch process folders. No local dependencies, uses Tencent Cloud COS imageMogr2 via Pixmind API. Save 60-90% file size with scene presets (web, wechat, email, thumbnail). Supports format conversion, quality control, and dimension adjustment. Tags: latest:1.1.","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":1140,"uniquenessScore":48,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-11T01:49:43.741Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-11T01:49:43.741Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-11T03:57:25.464Z","emptyReason":null},"items":[{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-10-09T19:11:12.944Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}