Data generator for (colour) 3D printing from an image

Would you like to print an image, a logo, a fairy-tale character or a child's drawing on a 3D printer? Or perhaps make your own original fridge magnet? I've created the Image Vectorizer app for this very purpose. It converts an ordinary image into multi-coloured SVG, 3MF and STL files. Each colour is separate, and everything runs entirely within your browser – the image isn't sent anywhere.

What do you need? First and foremost, a 3D printer. It's also useful to have a filament-changing system such as AMS or similar. However, you can also change the colours manually; it just takes a bit of extra effort. Most importantly, you need a source image, for example one downloaded from the internet. The larger the image, the better, of course. However, my app copes admirably even with relatively small images thanks to its smart scaling. If the image still isn't perfect, you can simply edit it directly within the app. You'll get excellent results even when converting hand-drawn images, including monochrome ones. White areas can also be coloured in directly within the app. This requires objects to have contrasting edges so that the app can recognise where the colour boundaries should be. However, even these can be drawn in or corrected. Simply take a photo of the image on paper with your mobile phone (make sure there is sufficient lighting without shadows or glare), or ideally use a desktop scanner.


1. Choose image
Switch the language CZ/EN. Drag the image into the window or select it with the button. Sample files are available for trying the app out.
Use Crop to select part of the image with the mouse. The default frame covers the whole image. Confirm the crop with the button or the Enter key.


2. Size
Enter the width or height in mm. With the aspect-ratio lock on, the other dimension is calculated automatically.
If the file name contains a size in the form AAAxBBB (e.g. logo_120x80.png), it is applied automatically:

  • If it matches the aspect ratio (±1 mm), the lock turns on and is highlighted in ochre.
  • Otherwise the lock turns off and both dimensions are used.

3. Print suitability
A colour-coded rating shows whether the image suits the chosen size: green = suitable, orange = suitable after adjustment, red = not suitable without changes. The reasons are listed below the rating: resolution (DPI), blurred edges, noise, JPG artefacts, thin lines and the number of colours.
Buttons:

  • Prepare SVG: the same action as SVG preparation.
  • AI image upscale: enlarges the image with AI in a new window. The result comes back automatically. Pop-up windows must be allowed.
  • Optimize: enlarges the image to 800 DPI, with separate modes for cartoons/graphics and for photos.
  • Shrink to…: sets the size at which the original has 250 DPI.

4. Image edits
The image is simplified to the proposed main colours. The tools are active only in this view; elsewhere they are greyed out.

  • Selection tolerance, Sharpening: control how colours merge and how sharp the edges are.
  • Black outlines: keeps thin dark lines and outlines.
  • Background…: cleans the background to white, or removes it (transparent).
  • Brightness, Contrast: set them manually or with Auto brightness and contrast.
  • Drawing and colours: Fill with color, Find color, Add color, and Drawing with an adjustable brush.
  • Going back: Undo and Reset.
  • Save image: saves the edited image as a PNG at 800 DPI.

Switch between the Original, Image edits and SVG preparation views with the buttons above the preview. The preview can be zoomed (+, −, 1:1, Fit).


5. Image for SVG settings

  • Noise / JPG: removes noise and artefacts.
  • Colors: set according to the recommendation.
  • Remove lines up to: default 0.15 mm.
  • Remove areas up to: default 0.1 mm².
  • Min. stroke width: default 0.4 mm. Set it to your nozzle diameter; narrower lines are widened.

Any change to the settings or edit of the image deletes the current SVG. The app then asks you to run SVG preparation again.


6. SVG preparation
Creates a print-ready version of the image and automatically generates the SVG from it. When it finishes, both windows show the whole output.
Show changes marks what was altered for printing: removed areas in red, added areas in green.


7. SVG preview

  • Smoothness: smooths the outlines, default 60 %.
  • Colour list: the hex code and share of the area for each colour.

8. Save

  • Save SVG: a multi-layer SVG at real size in mm.
  • Convert to STL ↗: opens SVG to STL in a new window and passes the SVG to it.

A web app that converts a colour SVG into a multi-colour 3D model. It runs directly in your browser with no installation, and your files are never uploaded anywhere.

Loading an SVG

Drag an SVG file anywhere into the app window, or click Open SVG…. An SVG can also be sent straight from the Image to STL app with a single click. The colours from the SVG are kept, and each colour becomes a separate part.

Preview controls

Rotate the model with the left mouse button, zoom with the scroll wheel and pan with the right mouse button. The Top button shows a top-down view and the 3D button an angled view.

Object height (Z axis)

The extrusion height of all shapes. The default is 0.6 mm and the range is 0.1–300 mm.

Size X / Y (aspect kept)

Width X and Length Y are read from the SVG. When you change one value, the other is recalculated to keep the aspect ratio.

Convert outlines (stroke) too also turns SVG lines into 3D, not just filled shapes.

Base under the object

A plate under the whole model that follows its outer outline exactly. The default height is 2 mm, and a value of 0 turns the base off. The parts sit on top of the base.

  • Close inner gaps closes inner gaps in the base that are narrower than the set value. The default is 0.2 mm.
  • Fill inner holes fills all inner holes in the base.
  • Base colour: Auto picks the most common colour along the outline. Click a colour to choose it manually.

Remove parts

  • Select: click a part to select it, hold Shift to select several. Selected parts turn red, and the Delete key removes them.
  • Eraser: click a part to remove it immediately.
  • Delete selected removes the selected parts.
  • Select all selects every part.
  • Invert inverts the selection.
  • Undo, or Ctrl+Z, reverts the last removal.
  • Restore all brings back all removed parts.

Colours

A list of all colours in the model with their part counts. You can set a custom height for each colour; an empty field means the default height.

  • Select selects all parts of that colour.
  • ✕ removes all parts of that colour.

Display

Gloss and Background change only the look of the preview and do not affect the export.

Export

  • Download 3MF for Bambu Studio saves one object with a part for each colour. Bambu Studio and OrcaSlicer pick up the colours, so you only need to assign filaments.
  • STL per colour (ZIP) saves a separate STL file for each colour and for the base. The files share the same coordinates and are meant for PrusaSlicer and other slicers.

Přeji hodně zábavy při používání této aplikace. Její vývoj mne opravdu bavil, tak snad bude užitečná i ostatním grafikům, nejen 3D tiskařům.

Luboš Hort