image2surface (Q46749)

From Library of Open Source Hardware
Jump to navigation Jump to search
No description defined
Language Label Description Also known as
English
image2surface
No description defined

    Statements

    en
    0 references
    auto
    0 references
    www.thingiverse.com
    0 references
    polymaker
    0 references
    1.0.0
    0 references
    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/image2surface Caveats: -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.
    0 references
    https://spdx.org/licenses/GPL-3.0-or-later
    0 references
    thingiverse.com
    0 references
    0 references