phototoline

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.

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.

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

  1. 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.
  2. 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.
  3. 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.
  4. Move Detail if the drawing is too busy or too empty. Higher keeps fainter strokes. Line weight only thickens strokes that are already dark.
  5. Download the PNG. The button saves phototoline-model at 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.