Make something
Email yourself a 10% off coupon
Send
Coupon sent! Check your email
This will be 3D printed near you and delivered to your door by May 03
Loading

Thundercats! Thundercats! Thundercats! HO!!!I wrote this script for the sole purpose of making a thundercats stamp, but my prints always sink in on the top layer so it only stamps a patchy outline. Sigh...This is a Python script that takes an image and turns it into something like a relief or a stamp. Sorry, it's not magic; it doesn't just convert any 2d image to 3d. It would have no way of knowing what should be popping up out of the image. That being said, sometimes it does work like that, and sometimes you just need to do a little editing first.It treats white as the baseline and any color in between white and black should be raised up a height corresponding to the difference from white. Specifying -i (inverse) will treat black as the baseline instead.The latest code will always be here (it will always be a work in progress): https://github.com/brad/image2surfaceCaveats: -At the moment, I haven't been able to make anything with an image over 200x200 pixels. Anything larger and OpenSCAD crashes when rendering the STL. -I don't know if this will work with CMYK images, I have only tested with RGB and RGBA.= Python 2.7 Python Imaging LibraryI hope the help output provides enough instruction: brad@inspiration:~/code/image2surface$ ./image2surface.py -h usage: image2surface.py [-h] [-i] [-r] [-d MAXDIM] [-z ZHEIGHT] [-o FILENAME] IMAGEFILEConvert image to a surface for OpenSCAD and a .stl if desired.positional arguments: IMAGEFILE The path to the image file you want to convert to a surface.optional arguments: -h, --help show this help message and exit -i Defaults to white as a background, this option makes black the background. -r Remove base layer from surface. Only applies if exporting to .scad and/or .stl. -d MAXDIM The maximum size in mm to make the x or y dimension. Only applies if exporting to .scad and/or .stl. -z ZHEIGHT The max z-height of the text, defaults to 5 -o FILENAME By default, this script just outputs textsurface.dat, which can be imported into an OpenSCAD document. If you specify a .scad filename for this parameter, the script will also output a .scad file which imports the surface. If you specify a .stl filename, the script will go further and generate a .stl file.====================I provided some example .stl files to show some examples of what you can do. The thundercats logo and bathroom signs were generated from images I obtained online and modified, so I didn't include the modified images for legality reasons.Believe it or not, I generated the shotglass directly from this image: http://thingiverse-production.s3.amazonaws.com/assets/e8/74/0c/05/58/surfaceshotglass.png using this command: python image2surface.py -i -r -z 50 -d 60 -o surfaceshotglass.stl surfaceshotglass.png

image2surface
Please wait while we prepare the order
$ 0.00 + free delivery
Sorry we had trouble getting the 3D files. Download them yourself and upload them here to place an order.
View files
  • 0 inches x 0 inches x 0 inches
  • this product is 3D printed
  • 16 available colors
  • material is a strong plastic
  • free delivery by May 03
  • 0 parts
Delivery address
This field is required.
This field is required.
Please enter a valid email.
This field is required.
This field is required.
This field is required.
This field is required.
This field is required.
Pay with credit card or debit card
or pay with
Place order
Order summary
image2surface
Color:
Quantity:
Subtotal
$
Delivery (May 02 - May 04)
Free
Total
$