GlirOSSupportAsk in the communityService status

Guides · More

More

SVG drawings: pictures the chat writes as code

Ask for an SVG ("create an SVG of a fox in the woods", "lag en SVG-tegning av en båt") and the chat's model writes the drawing itself as SVG code, in the answer. No picture model or tool is used, so it works offline with a model on this device too.

2 min read

The picture card and the preview

Under the code GlirOS shows the drawing as a picture card, with Save SVG, Edit as a picture (the picture tool: crop, convert, save as PNG) and Open in Avatars. The card shows a cleaned copy: scripts, links, outside addresses and embedded pictures are taken out, so nothing in the drawing can run or reach out. «Made safe to show: n kinds of parts taken out» says that something was. Save SVG saves that cleaned copy.

The drawing as a picture card under its code, ready to save as SVG.
The drawing as a picture card under its code, ready to save as SVG.

An animated SVG (moving leaves, a blinking fox) moves on the card too: plain SVG animation of shapes, colours and positions is kept. An animation that starts on a click or reaches outside the drawing is taken out, so that part stands still. The side panel's Preview (the eye on the code block) plays the SVG exactly as it was written, in a closed-off frame, and the file in Files and versions is the drawing as written.

Which model draws best

Drawing in SVG is hard for a small model: a model with a few billion parameters makes simple shapes, and a bigger model on the PC or a cloud model draws far better. Saying what you want helps any model: the size, the colours, gradients, "animate the tail".

This guide is the same text GlirOS itself uses to answer questions about GlirOS.

Still stuck?