█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

Pixel2Motion

एजेंट स्किल जो raster लोगो को स्मूद SVG और एनिमेटेड HTML लोगो रिवील में बदलती है

Agent Skills & Pluginsओपन सोर्स
भाषा
Python
लाइसेंस
MIT
$git clone https://github.com/nolangz/pixel2motion.git
संक्षेप में

Pixel2Motion क्या है?

Pixel2Motion एजेंट स्किल जो raster लोगो को स्मूद SVG और एनिमेटेड HTML लोगो रिवील में बदलती है. यह Agents & Automation टूल्स की Agent Skills & Plugins श्रेणी में आता है; ओपन सोर्स है, Python में लिखा गया है और MIT लाइसेंस के तहत है। शुरू करने के लिए: skill प्राप्त करें.

सारांश

The CueRecord raster logo used as the pixel source: a black C-shaped arc with a red dot beside the CueRecord wordmark.
Input: the CueRecord logo as a raster image.
Animated preview of the CueRecord logo: the C-shaped arc draws in, followed by the dot and the wordmark.
Output: the CueRecord logo animation generated from that raster source.

Pixel2Motion लोगो एनिमेशन के लिए एक ओपन सोर्स Codex और Claude skill है। PNG, JPG, WebP या लोगो के screenshot के दिए जाने पर, agent उसे एक साफ़, मिनिमल SVG के रूप में दोबारा बनाता है और फिर उस vector को एक standalone, dependency-free HTML फ़ाइल के रूप में लोगो रिवील में कोरियोग्राफ़ करता है। इसके साथ GIF/video preview और motion QA evidence भी मिलते हैं। इसकी `SKILL.md` काम को तीन चरणों में बाँटती है: Pixel (source पढ़ना और motion brief लिखना), Vector (motion के लिए संरचित geometry फिट करना) और Motion (Disney के 12 एनिमेशन सिद्धांतों का इस्तेमाल करके animation लिखना)।

Vector चरण एक complexity ladder का पालन करता है: पहले primitives, फिर primitive composites, few-curve analytic paths, smoothed outlines, और trace से निकले paths, और वह भी तभी जब सरल geometry विफल हो जाए। Smoothness एक कठोर gate है। High-IoU trace जो stair-step करता है, उसे अस्वीकार किया जाता है और उसकी जगह कम complexity वाला smooth curve चुना जाता है। Source से IoU हर iteration में एक diagnostic के रूप में निकाला जाता है। हर candidate को render करके raster पर overlay किया जाता है, और overlays को evidence के रूप में सहेजा जाता है। नतीजतन SVG में हर semantic हिस्से (mark, dot, wordmark, अलग-अलग letters) के लिए एक element रहता है, जिसके stable ids होते हैं, ताकि animation हर हिस्से को अलग से target कर सके।

Motion चरण उन ids के सामने `motion.css` लिखता है और उसे replay, slow-motion और speed controls वाले showcase HTML पेज में लपेटता है, साथ ही hover, pulse और press जैसे छोटे atomic motion studies भी। Animation को सत्यापित static vector पर ठीक उसी जगह खत्म होना चाहिए (skill इसे Final Frame Contract कहती है)। Playwright-driven scripts deterministic frames कैप्चर करती हैं और draw-on strokes तथा handoffs जैसी जोखिम भरी windows की जाँच करती हैं। Static fitting method एक companion project, Pixel2SVG-HTML, में दर्ज है। यह skill Python में लिखी गई है और MIT license के तहत जारी की गई है।

Pixel2Motion showcase page for the Horizon logo, with hover, pulse, arc and press motion studies, animation-principle tags, and replay, slow-motion and speed controls.
The generated showcase HTML: the main logo animation, four atomic motion studies, the animation principles applied, and replay and speed controls.Pixel2Motion README ↗

यह क्या करता है

  • Raster लोगो (PNG, JPG, WebP या screenshot) से minimal SVG तक, जो सबसे कम complexity से शुरू होकर primitives से smoothed paths तक फिट किया जाता है
  • Smoothness एक कठोर acceptance gate के रूप में, और source से IoU एक निश्चित threshold की बजाय diagnostic के रूप में ट्रैक किया जाता है
  • हर fitting iteration के लिए overlay evidence, साथ ही noisy handles, tangent jumps और stair-step runs के लिए Bézier path audit
Strip of five frames showing the CueRecord source logo, three teal vector overlays compared against it, and the final vector render.
Fitting evidence, left to right: the vector candidate is overlaid on the raster source until scale, dot placement, baseline and ink weight match, and only then is motion authored.Pixel2Motion README ↗
  • Motion-ready SVG संरचना: हर semantic हिस्से के लिए stable ids वाला एक element, और draw-on strokes पर `pathLength="1"`
  • Dependency-free showcase HTML, जिसमें replay, slow motion, speed slider और atomic motion studies शामिल हैं
  • Playwright के ज़रिए deterministic frame capture और motion-continuity probing, साथ ही लिखा हुआ `motion_spec.md` brief

शुरू करें

Pixel2Motion एक skill folder है (`SKILL.md`, `references/`, `scripts/`), जिसका आपका agent पालन करता है। इसके helper scripts को Python 3.10+, Pillow, numpy, Chrome या Chromium, और Playwright चाहिए। README में एक-लाइन वाले skill installer का ज़िक्र नहीं है, इसलिए repository लेकर helpers को अपने सिस्टम पर खुद सेट करें।

Skill प्राप्त करें

Repository को clone करें। Fitting या choreography से पहले agent `SKILL.md` और reference files पढ़ता है।

bashbash
git clone https://github.com/nolangz/pixel2motion.git

Helper environment सेट अप करें

README में दिया गया recommended local setup image-analysis libraries और Playwright के लिए Chromium build इंस्टॉल करता है। अगर Chrome default path पर नहीं है, तो render checks चलाने से पहले `CHROME_BIN` सेट करें।

bashbash
python3 -m venv .venv
.venv/bin/pip install pillow numpy playwright
.venv/bin/python -m playwright install chromium

Static vector फिट करें और जाँचें

`motion_spec.md` में motion brief लिखने के बाद candidate SVG को source लोगो पर render करें और fit metrics दर्ज करें। जब curve की smoothness की चिंता हो, तब `scripts/svg_path_audit.py` भी चलाएँ।

bashbash
python3 scripts/render_overlay.py logo.svg source.png \
  --out outputs/fit_iterations/01_overlay.png \
  --render-out outputs/final_render.png \
  --report outputs/fit_metrics.json

Showcase HTML बनाएँ

सत्यापित SVG को `motion.css` में लिखी choreography के साथ मिलाएँ।

bashbash
python3 scripts/animate_svg_showcase.py logo.svg \
  --css motion.css \
  --out logo_motion.html \
  --title "Logo Motion" \
  --duration-hint 1500

Motion QA frames कैप्चर करें

चुने गए समय पर deterministic frames render करें और आखिरी frame की तुलना static render से करें, ताकि साबित हो कि animation सत्यापित vector पर ही खत्म होता है।

bashbash
python3 scripts/capture_motion_frames.py logo_motion.html \
  --times 0,300,700,1000,1250,1500 \
  --out outputs/motion_frames \
  --strip outputs/motion_strip.png \
  --compare-final outputs/final_render.png

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • इसका इस्तेमाल तब करें जब किसी brand के पास अपने लोगो का केवल PNG या screenshot हो और उसे एक साफ़, editable SVG संस्करण चाहिए
  • इसका इस्तेमाल तब करें जब लोगो के लिए splash-screen intro, header reveal, loading loop या hover micro-interaction बनाना हो
  • इसका इस्तेमाल तब करें जब एनिमेटेड लोगो को बिना किसी animation library के, सादे HTML/CSS के रूप में भेजना हो, और review के लिए GIF या video previews भी चाहिए हों
  • इसका इस्तेमाल तब करें जब आपको reviewable evidence चाहिए (overlays, metrics और frame strips) कि AI-बनाया गया vector और animation मूल लोगो से मेल खाते हैं

How Pixel2Motion compares

Pixel2Motion alongside other open-source agent skills & plugins tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
Skills for Real Engineers★ 338kcoding agents के लिए Matt Pocock के रोज़मर्रा के engineering skills — छोटे, जोड़कर इस्तेमाल होने वाले, और अपने हिसाब से edit करने के लिए बने हुए
Superpowers★ 331kएक skills plugin, जो आपके coding agent में पूरी development methodology इंस्टॉल कर देता है
ECC★ 315kएक plugin जो पूरी engineering process — agents, skills, hooks, rules और memory — को Claude Code, Codex और दूसरे harnesses में इंस्टॉल करता है
Karpathy Coding Guidelines★ 238kचार नियम जो कोडिंग agent को अंदाज़े से काम करने, कोड फुलाने और बिना वजह refactoring करने से रोकते हैं
Ponytail★ 204kआपका coding agent सिर्फ़ उतना कोड लिखे, जो असल में काम करे
gstack★ 143kSlash-command स्किल्स जो आपके coding agent के लिखे कोड की समीक्षा, टेस्टिंग और शिपिंग करती हैं
Taste Skill★ 125kAI से बनी इंटरफ़ेस को जेनेरिक दिखने से रोकने वाली पोर्टेबल एजेंट स्किल्स
Pixel2Motion★ 2.7kएजेंट स्किल जो raster लोगो को स्मूद SVG और एनिमेटेड HTML लोगो रिवील में बदलती है