/omniskill:smart-resizefrom omniskill
Content-aware image resizing via seam carving. Changes aspect ratio or dimensions by removing/adding low-energy pixel paths, preserving subjects. Bundled numpy/Pillow script, runs locally with no GPU.
Ships in omniskill. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Reframe without squashing · OmniSkill Design crew
Plain scaling distorts a subject and a crop cuts it off. Seam carving finds the connected path of pixels, top to bottom, with the least visual change (flat sky, blurred background, floor) and removes it, over and over. Paths through busy areas cost more, so faces, products and edges survive. Enlarging runs the same search and duplicates the cheapest paths. The method is from Avidan and Shamir's 2007 paper "Seam Carving for Content-Aware Image Resizing", implemented here from scratch, with no code from any other tool.
python3 ${CLAUDE_SKILL_DIR}/scripts/smartresize.py in.jpg out.png --aspect 9:16
python3 ${CLAUDE_SKILL_DIR}/scripts/smartresize.py in.jpg out.png --width 800
python3 ${CLAUDE_SKILL_DIR}/scripts/smartresize.py in.jpg out.png --width 1400 --height 700 --keep 300,120,400,500
python3 ${CLAUDE_SKILL_DIR}/scripts/smartresize.py in.jpg out.png --perc 30 --drop 0,0,200,900
Write the full path into the command; Bash does not set CLAUDE_SKILL_DIR. Needs numpy and Pillow (pip install numpy pillow or uv run --with numpy --with pillow).
| Option | Does |
|---|---|
--width N / --height N | target size on that axis; carves to shrink, inserts seams to grow |
--aspect W:H | reframes by carving whichever side is too long, so --aspect 9:16 on a landscape photo narrows it |
--perc P | removes P% of the width (negative adds) |
--keep x,y,w,h | protect a box: a face, a product, a logo, text. Repeat for several |
--drop x,y,w,h | make a box the first thing removed: a stray person, a sign |
Protection applies to the first axis carved (width, then height). Output is PNG unless the extension says otherwise; transparency is kept.
--keep boxes in pixel coordinates (x, y from the top left). Without them the algorithm only knows edges, so it will happily slice through a face of low contrast.Measured on a 981 by 832 screenshot of a package-manager window, reframed to 9:16 (513 seams removed): the photo-like parts were fine, but every line of text came out with letters fused and clipped, because text is thin, high-frequency detail on a flat background, which is exactly what the energy map calls "cheap". So:
Pure numpy with a Python loop per row, about 40 ms a seam on a 1000 px image: 20 seconds to remove 500 seams, and it gets slower with size. Shrink a large photo with an ordinary resize first (to about 1000 px on the long side), then carve. There is no face detector: pick the box yourself with --keep.
For reframing stills, for example a hero image to a vertical story or thumbnail. craft-video can call it for background frames. Anything about design direction or new imagery belongs to ui-ux-pro-max or canvas-design.
Original to OmniSkill, written from the published algorithm. The research behind it: Avidan and Shamir, ACM SIGGRAPH 2007. Prior open-source implementations exist (for example esimov/caire, MIT); none of their code is used here.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ipedrax/omniskill --plugin omniskill70 skills in this plugin
/3-statementsFull 3-statement financial model. OmniSkill Finance crew — links income statement, balance sheet, and cash flow so the balance sheet ties to zero./ad-creativeScale ad creative variations. OmniSkill Marketing crew — builds a structured variation matrix across angles, hooks, and formats so tests isolate what actually drives performance./airshipVisual editor for the running app. OmniSkill Design crew — drives the airship CLI, which puts an infinite canvas in front of the dev server you already have: click an element, describe the change, and a coding agent edits the source file it came from.Other plugins' skills for the same job