Implementation guide · SVG portrait source kit

Export an SVG Portrait and Reopen Its JSON with Kindredraw

Kindredraw builds an illustrated portrait from editable vector parts. You can hand off a scalable SVG, a finished PNG and a JSON project that reopens in the editor. This guide follows a transparent portrait example and explains how the supplied jQuery plugin fits into an existing page.

Choose the preview or the complete kit

The free working preview offers one style, a name field, skin and hair colors, and SVG download. The full source kit is a one-time 25 USD purchase, with applicable taxes calculated at checkout. It includes all parts and fictional presets, history and randomization, JSON reopening, PNG output at 512 or 1024 pixels, transparency, transforms and an integration example.

Use the product page to choose the appropriate offer. The free preview does not include the full editor's parts, history, PNG or project workflow. Managed hosting, personal support, service levels and an update schedule are not included in the source kit.

After obtaining the full kit, extract it and open app/index.html in a modern browser. The prebuilt runtime requires no installation, account, network or build. If your browser restricts local downloads, the README documents an optional loopback server:

python3 -m http.server 8080 --bind 127.0.0.1

Run that from the extracted folder, then open http://127.0.0.1:8080/app/. Keep your local terminal running while using that server and stop it with Ctrl-C when finished.

Make a concrete transparent portrait

In the full editor, choose Noor and turn on Transparent. The independently checked project retained a soft head, bun hair, wink eyes, natural brows, smile, no accessory and a crew outfit, with tilt 0 and scale 100. Its skin, hair and shirt colors were #B97C54, #282B30 and #AA6551.

Change head, hair, eyes, brows, mouth, accessory or outfit to suit your illustration. Parts are independent of gender labels. Tilt ranges from −15 to 15 degrees and size from 80% to 110%. Transparent removes the canvas fill; it does not remove the portrait itself.

Surprise me makes a new combination. Undo and Redo retain up to 50 changes in memory. Reset returns to that particular editor instance's starting portrait. Save your project before closing the tab, because there is no automatic storage or upload.

Export the right file for the next person

To check a handoff, save the JSON, change the portrait, then use Open project to choose the actual saved file. Invalid or oversized files preserve the current portrait and show a readable error. Kindredraw does not import arbitrary SVG artwork.

Mount the jQuery plugin deliberately

The full kit includes an actual jQuery plugin. On a page that already loads a compatible jQuery version, use the individual core.js and jquery.kindredraw.js files with the supplied CSS. Otherwise the bundled runtime includes jQuery and the demo. Choose one route so you do not load jQuery twice.

Place the container in your document and load the ordered scripts after the DOM. Initialize your own element explicitly:

<div id="avatar"></div>

// After the documented scripts and DOM are ready:
$('#avatar').kindredraw({project: Kindredraw.presets[1]});

The shipped studio is initialized by its demo script; that does not automatically initialize an arbitrary new container. Read samples/embed.html for the complete two-instance example.

Each instance has its own state, form IDs and history. The documented get method returns a defensive-copy project, set validates a complete project before updating, svg returns XML and serialize returns project JSON. Getters use the first selected instance; mutations apply to each selected instance. Save before calling destroy, which removes controls and handlers.

The current independent embedded-example check changed transparency and history in one portrait while the other retained its original state. An invalid import preserved both. Test the same independence in your own page if you mount more than one editor.

Keep output rights and runtime limits visible

The original paid source license permits finished portrait output sharing and use in your own personal or commercial projects. It does not permit standalone source resale or redistribution as a generator/template, or claiming authorship. Free-preview terms are separate; jQuery keeps its own MIT notice and attribution.

These are fictional illustrated portraits, not likenesses of real people. No photos or biometric data are processed. Local exports stay local; customer archives load no fonts, CDNs or analytics. The product page's separately integrated, optional consent-controlled hosted diagnostic does not make the offline package collect project data. This guide collects no usage data.

Desktop and mobile browser viewport checks are evidence for those views, not certification of every browser engine or physical touch device. The kit provides no hosted backend, third-party account integration or likeness guarantee.

Try the free Kindredraw preview or view the full source kit, and keep the editable JSON alongside your SVG or PNG handoff.