S2V Sketch2VideoOpen tool ↗

A small deterministic renderer

From pixels to pencil strokes—inside your browser.

Sketch2Video is deliberately not an AI service. It combines conventional image processing with canvas animation and browser video recording.

01

1. Prepare the source

The browser scales large images to a practical canvas size. Edge-preserving smoothing suppresses small camera and texture noise while retaining stronger colour boundaries.

Nothing is uploaded. Refreshing or closing the page clears the in-memory session.

02

2. Abstract coherent lines

Two Gaussian scales form an XDoG-inspired dark-line response. Adaptive high and low thresholds keep weak marks only when connected to strong contours, then small isolated components are removed.

Clean mode keeps sparse dark contours. Textured pencil mode adds restrained deterministic hatching without an image model.

03

3. Draw lines, then add colour

The line mask is thinned into connected paths, ordered across the page, and accumulated stroke by stroke. Colour is added with short diagonal brush strokes inside connected colour regions.

A workload-derived timeline gives line work a quicker pace and dense colour work more room. Fixed 3, 5, 10, 20, or 30-second exports uniformly compress that same timeline instead of guessing different phase percentages.

04

4. Record the canvas

Supported browsers encode WebM frame by frame at a fixed 30 fps. Other formats and browsers use real-time canvas recording. WebM is the reliable option in Chromium and Firefox; MP4 appears only when the browser reports direct support.

On a busy device, frame-by-frame export takes longer while preserving every frame. Keep the tab open until export finishes.

Questions

Good to know

Does it use AI?

No. The current renderer uses local image-processing and browser media APIs only.

Does it need a Worker?

No. The site is static and the rendering work runs on the visitor’s device.