Convert PNG to STL
Turn PNG images into STL. The picture as a solid relief 100 mm on its longest side, standing 2 mm where it is black up to 10 mm where it is white, on a flat base with straight sides.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop PNG files on the dialor turn it to pick what to do
A PNG turned into a 3D relief.White parts rise high and black parts stay low, on a flat base.
What you get
One STL file with the picture as a solid relief, 100 mm on its longest side. It stands on a flat base with straight sides.
The height follows the brightness. Where the picture is black, the relief stands 2 mm. Where it is white, it stands 10 mm. Shades in between fall between those two heights.
What changes
A picture over 256 pixels on its longest side is sampled down to 256 pixels. Fine detail is smoothed as a result.
Clear areas count as black, so transparent parts of the PNG stay at the lowest height.
STL holds geometry only, with no color or units. The colors of the PNG are not kept. Only their brightness shapes the relief.
PNG and STL.What each format is.
The formats
PNG
Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.
- Extensions
- .png
- MIME type
- image
/png - Kind
- Images
STL
Triangle meshes for 3D printing. Geometry only, no color or units.
- Extensions
- .stl
- MIME type
- model
/stl - Kind
- 3D models
In your code.The same PNG to STL conversion through the API, for your app or your agent.
$ cv convert photo.png photo.stl$ cv convert photo.png photo.stlQuestions.What people ask about PNG to STL.
It is 100 mm on its longest side. The relief stands from 2 mm where the picture is black up to 10 mm where it is white.
Pictures over 256 pixels on their longest side are sampled down to that. Fine detail is smoothed in the process.
Clear areas count as black, so they stay at the lowest height of 2 mm.
No. STL has no color, so only the brightness of the PNG shapes the relief. Dark areas are low and light areas are high.