一键导入
image-tools
CLI image manipulation — convert PNG/JPG to SVG, remove watermarks, resize, crop, and edit raster images using ImageMagick and vtracer
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
CLI image manipulation — convert PNG/JPG to SVG, remove watermarks, resize, crop, and edit raster images using ImageMagick and vtracer
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Refresh context window — agent writes handoff and restarts
Triage plan review findings — categorize issues, fix actionable ones, report
Use when a request needs collaborative exploration of intent, constraints, alternatives, or design before the direction is settled.
Use when the user asks to finalize and hand back an existing design or implementation plan stored in FlickNote.
Use when a bug needs root-cause diagnosis and a written fix plan before implementation.
Use when the user asks for a concrete implementation plan for an agreed change before code is written.
基于 SOC 职业分类
| name | image-tools |
| description | CLI image manipulation — convert PNG/JPG to SVG, remove watermarks, resize, crop, and edit raster images using ImageMagick and vtracer |
CLI-first image manipulation using ImageMagick (raster) and vtracer (raster-to-vector).
which magick && echo "imagemagick OK" || echo "need: brew install imagemagick" which vtracer && echo "vtracer OK" || echo "need: cargo install vtracer"
Install if missing: brew install imagemagick # raster image editing cargo install vtracer # raster-to-vector conversion (Rust)
Best for logos, icons, flat illustrations:
vtracer --input input.png --output output.svg
--colormode color
--filter_speckle 10
--color_precision 4
--corner_threshold 60
--segment_length 6
--gradient_step 32
For complex images, increase precision:
vtracer --input input.png --output output.svg
--colormode color
--filter_speckle 4
--color_precision 6
--corner_threshold 60
--segment_length 4
For line art, text, or single-color designs:
vtracer --input input.png --output output.svg --colormode bw
filter_speckle, gradient_step, decrease color_precisionsegment_length, filter_specklecolor_precision (1-8, lower = fewer colors)Paint over a region with a solid color (e.g. matching background):
magick identify input.png
magick input.png -fill "#0F0F0F" -draw "rectangle 1180,1180 1280,1280" output.png
magick input.png -resize 512x output.png
magick input.png -resize 512x512! output.png
magick input.png -resize 512x512> output.png
magick input.png -crop 500x500+0+0 output.png
magick input.png -gravity center -crop 500x500+0+0 output.png
magick input.png output.jpg magick input.jpg output.webp magick input.png -quality 85 output.jpg
magick input.png -trim +repage output.png
magick input.png -threshold 50% output.pbm
When source image has watermarks, logos, or artifacts:
magick identify input.jpg
magick input.jpg -fill "#BACKGROUND" -draw "rectangle x1,y1 x2,y2" clean.jpg
vtracer --input clean.jpg --output output.svg --colormode color
--filter_speckle 10 --color_precision 4 --corner_threshold 60
--segment_length 6 --gradient_step 32
ls -la output.svg
magick logo.png -resize 32x32 favicon-32.png magick logo.png -resize 16x16 favicon-16.png
magick logo.png -resize 256x256 -define icon:auto-resize=256,128,64,48,32,16 favicon.ico
| Task | Tool |
|---|---|
| PNG/JPG → SVG | vtracer |
| Resize, crop, format convert | magick |
| Remove watermark | magick (paint over) → then vtracer if SVG needed |
| Trim borders | magick |
| Create favicon | magick |