/visual-effects:kornia-artistic-transformsfrom visual-effects
Applies reproducible Kornia and PyTorch artistic transformations to supplied raster images, including adaptive engraving, pigment regions, halftones, stitches, ink strata and cellular mosaics. Supports ordered combinations, comparison galleries and feedback-led iteration while preserving image proportions. Use for algorithmic image reinterpretation and technique exploration; generative image creation, SVG tracing and measured depth reconstruction are separate tasks.
Ships in visual-effects. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Transform an existing image into deliberate graphic constructions. Deliver actual renders and reproducible settings. Use the bundled CPU runner; no trained model, original demonstration images or external project is required.
Inspect the source and the requested outcome before selecting recipes. Preserve the complete composition unless a crop is requested. Separate the user's chosen style from personal preferences inferred in another project.
quadtree-engraving, region-hatching, ink-strata and linked-cells. They explore different mechanisms: local mark direction, pigment regions, alternating ink bands and connected negative space. They are starting points, not universal aesthetic winners.Resolve the script from the loaded skill directory. The examples below assume that directory is skills/kornia-artistic-transforms; replace that prefix with its actual location when installed elsewhere. Write results in the active workspace, outside the skill bundle.
The script declares its Python and CPU dependencies for uv. First use may install them. This isolated environment does not install Pillow, NumPy or Kornia into an ambient python. For an additional image-check script, declare its own uv dependencies, for example uv run --with pillow --with numpy python check.py. Inspect --help or --list instead of reading the complete engine for ordinary use.
uv run --script skills/kornia-artistic-transforms/scripts/artistic_transform.py --list
Render one exact output, with its reproducibility report beside it:
uv run --script skills/kornia-artistic-transforms/scripts/artistic_transform.py input.jpg -o engraving.png --technique quadtree-engraving --seed 42 --max-edge 1024
The default single-image report replaces the PNG suffix with .json. When the user requests an exact different JSON path, pass --report that-path.json during rendering; do not guess a .meta.json default or rename self-referencing reports afterward.
Create independent alternatives from the same original:
uv run --script skills/kornia-artistic-transforms/scripts/artistic_transform.py input.png --output-dir comparison --techniques quadtree-engraving,region-hatching,ink-strata,linked-cells --seed 42
The batch creates PNGs, source.png, manifest.json, contact-sheet.png and a local responsive gallery.html. --techniques all renders all ten methods. For several source images, use a separate output directory for each source; keep each source hash and its results together.
Resolve paths using each document's location: manifest.json output entries use collection-relative paths such as images/001-quadtree-engraving.png; the report inside images/ uses its own directory as the base, such as 001-quadtree-engraving.png. These records are not literally identical JSON objects. Compare their substantive metadata and resolved artifacts, not unnormalized path strings.
Repeat --technique to compose ordered stages into one image:
uv run --script skills/kornia-artistic-transforms/scripts/artistic_transform.py input.png -o combined.png --report combined.meta.json --technique region-hatching --technique directional-glass --strength 0.65 --scale 1.2 --seed 42
Order matters: the second stage analyzes the first stage's result. Compare each constituent against the combination. For a construction whose partitions and marks must both follow the untouched source, implement parallel branches and merge them explicitly rather than presenting a sequential composition as equivalent.
--max-edge 0 for the oriented source dimensions. Re-render at final size rather than enlarging a preview and claiming restored detail.--scale separate from output size. It scales marks, cells and displacement relative to the short edge. Luminance thresholds remain dimensionless.--background FFFFFF only when flattening onto that background is wanted.--overwrite only for an authorized replacement of generated artifacts.Use the bundled verifier for artifact, path, metadata, decoded-pixel hash and source-alpha checks instead of reimplementing those checks in ad hoc shell snippets:
uv run --script skills/kornia-artistic-transforms/scripts/validate_art.py comparison/manifest.json --input input.png --expect-count 4
It also accepts individual report JSONs, including several reports in one call. Pass the actual original with --input so its bytes, dimensions and alpha are independently checked. Without that input, source verification remains explicitly limited. This checker does not grade taste or infer whether a treatment is beautiful.
Inspect the contact sheet and at least the relevant full-size outputs. Look for unintended crop, lost silhouette, empty cells, halos, clipped highlights, illegible mark density, deformed small features and resampling blur. Check the original and result together at display size. Flat or intentionally subtle sources are valid; contrast and pixel distance are diagnostics, not taste scores.
When a gallery is requested, open the local HTML or provide a contact sheet through an available display surface. A loopback URL is only accessible on the computer serving it. Use an available hosting workflow only when requested; creating these artifacts does not itself publish them.
Return the actual outputs, their technique names, important settings and material limitations. Keep source hashes, seeds, ordered stages and parameters in the reports. Mark new candidates as unreviewed until the user rates them. Preserve supplied notes and distinguish accepted, explicitly rejected and merely unselected work.
agents/openai.yaml (opens in a new tab)references/composition.md (opens in a new tab)references/input-and-quality.md (opens in a new tab)references/review-and-learning.md (opens in a new tab)references/techniques.md (opens in a new tab)scripts/artistic_transform.py (opens in a new tab)scripts/techniques.py (opens in a new tab)scripts/test_artistic_transform.py (opens in a new tab)scripts/validate_art.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub gvillarroel/plugins --plugin visual-effects5 skills in this plugin
/one-bit-dither-svgTransforms local SVGs and raster images into self-contained pixel SVGs, or restyles declarative animated SVGs and animated raster images as palette-optimized GIFs, with a one-bit dithered engraving aesthetic. Includes Obra Dinn-inspired black-and-white, custom-color-and-white, and region-aware source-color modes. Use for retro 1-bit, stippled, or high-contrast treatment of illustrations, photos, screenshots, logos, diagrams, SVG/CSS/SMIL animation, and animated GIF/WebP/APNG files; not when source editability, JavaScript-driven motion, or interaction must remain intact./pixel-art-image-videoConverts local raster or SVG images and local videos or animated rasters into crisp pixel art with adaptive, custom, or exact source colors. Use for retro game-style PNG/WebP stills, MP4/GIF motion, lossless MKV video, and image-dependent pixel-density tuning; do not use when the source must remain editable vector art or JavaScript-driven SVG motion needs direct capture./threejs-animated-3dBuilds, animates, troubleshoots, and validates Three.js/WebGL 3D scenes and galleries. Use when Codex needs browser-rendered 3D visuals, animated camera or object motion, particle fields, 3D data views, material and lighting studies, interactive canvas scenes, or a Three.js example page that should be verified with Playwright canvas-pixel checks./vectorize-art-patternsSimplifies openly licensed or user-owned raster artwork and organic artistic patterns into editable standalone SVGs using deterministic smoothing, palette reduction, seeded composition variation, canonical colorset1/colorset2 adaptation, ink, stain, collage, contour-tracing, and tiling pipelines. Use when Codex needs to vectorize or reinterpret raster art, derive non-geometric abstract or Cubist material patterns, build multi-pattern collections with no reused compositions or paths, generate repeatable SVG pattern tiles, create palette-matched comparison galleries or GitHub Pages examples, preserve licensed base-image assets with provenance, or validate that an SVG is truly vector rather than a raster wrapper.