Browser-only line art
A Line Art Model That Leaves Out Background Clutter
This line art model runs in your browser. The first visit downloads about 16 MB with a progress bar; after that it stays on this device, and more of the background texture is left out.
The first visit downloads a 16 MB drawing model. That drawing is the slow one. The model stays on this device, and the photo is not part of the download.
- 1PhotoOriginal input
- 2PrepareFit the photo
- 3ExtractLine drawing
- 4FinishInk and weight
Detail keeps fainter strokes. Line weight thickens the dark ink. Download PNG saves the drawing on this device. The first conversion downloads about 16 MB, and the progress bar follows that download. Later photos skip it. The homepage draws immediately, with more of the background left in.
- First visit downloads about 16 MB, with a progress bar
- Later photos skip that download
- PNG download, and the photo never leaves this device
Which page to use
This site has more than one line art tool. They differ in how the lines are made, so pick by the job rather than by the name.
- photo to line art is the homepage: a fast filter that draws in under a second, with nothing to download. Plain backgrounds and simple subjects come out well, but gravel, leaves and fabric weave stay in the drawing.
- This page runs a line art model in the browser: one 16 MB download, then more of that background texture is left out.
- photo to sketch uses the same model with pencil ink, for grey, grainy strokes that sit next to photographs or go on a card.
A portrait against a plain wall: use the homepage and skip the wait. A pet on grass, a facade with brickwork, a product shot on a busy shelf: use this page.
A cleaner drawing, after one download
The homepage draws lines immediately. It is a filter, so a busy background stays busy. This page runs a small line art model in your browser. It keeps contours a person would bother to trace, and it leaves out more texture, such as gravel, fabric weave and leaf noise.
The first visit downloads about 16 MB. That visit is the slow one. A progress bar follows the download, then the model is prepared on this device and the lines are drawn. Later photos skip the download. The photo itself is never uploaded, and it is not part of the model request.
The same photo and the same settings always produce the same drawing. This is not a generative model. It does not invent a new face or a new pose.
How to use it
- Drop a photo in. JPG, PNG or WebP, up to 12 MB. Read the note on the drop area before the first one: the model has to download.
- Watch the progress bar. It moves from 0 to 100 percent while the 16 MB file arrives. After that it says the model is being prepared. The next photo does not repeat this wait.
- Pick a pen. Ink outline is the default. Fine pen keeps more edges. Bold marker thickens the dark strokes. Pencil sketch draws them in grey.
- Move Detail if the drawing is too busy or too empty. Higher keeps fainter strokes. Line weight only thickens strokes that are already dark.
- Download the PNG. The button saves
phototoline-modelat the size on screen. Nothing is watermarked.
What the model actually does
The photo is fitted to about 768 pixels on the long edge, or about 512 on a phone. The colour image goes into the network. A greyscale drawing comes out: dark strokes on white paper. Detail decides how light a stroke can be and still be kept. Line weight thickens the dark ink.
The weights are the Informative Drawings model, published under the MIT license. The browser downloads them from this site and loads a drawing engine so the network can run without a server.
When to use which page
| Homepage | Drawing model, this page | |
|---|---|---|
| First visit | Nothing extra to download | About 16 MB, with a progress bar, then cached |
| Speed | Usually a fraction of a second | A few seconds after the model is ready |
| Busy backgrounds | Texture is drawn | More of the texture is left out |
| Download | PNG on your device | PNG on your device |
| Same photo, same settings | Same drawing every time | Same drawing every time |
Both pages keep the photo on your device. Neither one invents a new face. The photo to sketch and photo to coloring page pages use this same model, because a pencil sketch and a printable coloring page want the cleaner lines.
Frequently asked questions
Why is the first drawing slow?
The model is about 16 MB and has to download once. The progress bar is that download. After it finishes, the browser keeps the file, and the next photo starts without it.
Does this look the same as the homepage?
No. The homepage is a fast filter, so gravel, glass and leaves stay in the picture. This model leaves more of that texture out. Use the homepage when you want the lines immediately, and this page when the background is busy.
Is the photo uploaded?
No. The model runs in your browser. The download is the model file, not the photo, and Download PNG saves the drawing on your device.
Is this the same as photo to sketch?
Same model, different ink. Photo to sketch draws with grey, grainy pencil strokes. This page draws solid black lines, which is what you want for a backing-print test or a sketch that will be traced.