flickr:4885991399 is just like [Frosterize|]. It'll take an image and create a rasterized gcode output suitable for printing with a Unicorn MK1 on your MakerBot. It has some optional configurations that will scale your design to fit in a certain area, draw a border, and to set print speed options.

The script will attempt to convert your image to black and white, though, if it's already black and white it'll just resize it.

See the Unicorn MK1 usage page for information on where to download and the rest of the tools. You will need Python and the PIL (Python Imaging Library)

Step 1: Get/Process an Image


As stated in the overview, will attempt to automatically convert your image to a printable form. In order to help you determine what is going on, the script will output two different image files in the same directory as your original image file. The original image will not be modified in any way.

I've found QR codes work particularly well with the script. Head over to Thingiverse and grab your favorite thing's code.

Step 2: Create your GCode

Creating your GCode is pretty easy. First drag/copy your image file (.png, .bmp, .jpg, .tiff, etc.) into the folder where you have (it's probably called Plotterize Script).
Next you'll want to open the command prompt/terminal and navigate to the same folder. You'll find the terminal on OSX in the Utilities folder and the command prompt on Windows by typing "cmd" into Run.
5006209024_44942398e0_o.png 5006209140_a07405d8b8_o.png
The easiest way to navigate to the folder within the terminal window is to drag it directly into the terminal window after typing "cd ".
Then, all you need to do is type the command:

 python unicorn-qrcode.png > unicorn-qrcode.gcode


If you want to get all fancy you can specify whatever options/configurations you want. Here are a few examples:

#get a list of options and help
python --help

#generate gcode using standard settings
python image.jpg > output.gcode

#generate inverted gcode using standard settings
python --invert image.jpg > output.gcode

#generate gcode with custom feedrate and width
python --xy-feedrate=4200 --width=70 image.jpg > output.gcode

Press enter, look back at your folder, and out should pop two new image files and a gcode file. Yay!
flickr:5006209482 flickr:5006209536

Step 3: Run your GCode

  1. Startup ReplicatorG (0019 or later)
  2. Open your newly created GCode
  3. Center the tip of your drawing implement in the middle of XY and just about 1mm above your build surface
  4. Click 'Build' and watch the magical Unicorn spring into action.
Unless otherwise stated, the content of this page is licensed under GNU Free Documentation License.