GithubHelp home page GithubHelp logo

scott-cooper / drawbot_image_to_gcode_v2 Goto Github PK

View Code? Open in Web Editor NEW
161.0 161.0 55.0 24.63 MB

Creates gcode for use on drawbots

Home Page: http://dullbits.com

License: GNU General Public License v3.0

Processing 97.66% Java 2.34%

drawbot_image_to_gcode_v2's People

Contributors

scott-cooper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

drawbot_image_to_gcode_v2's Issues

The question of the beginner

How does it start in Processing? In what directory, what files should be placed?
All ok.....
Fantastically beautiful work! While I can not open the created files.
SVG 6Mb, but inkscape freezes. I will read and try. Thank you for the great and useful work.

Processing decimal separator question

Hi Scott!
I enjoy your fantastic code with my Polargraph machine. :)
This is the best conversion from jpeg to gcode, I have ever used!!!

My question is:
Do you know, how can I change the default decimal separator character in Processing 3?
My local character is "," instead of "." and it is a problem in GCODE.

Other question:
What is your suggestion, if I want to use 0.8mm pen? Which parameters should be changed?
Thx: Peter

Gcode File Flipped

Thank you so much for sharing this amazing program! I am having an issue with the generated Gcode file. the test images all show up normal but the gcode file is flipped and the orgin is being created at the top of the image. Any help would be greatly appreciated. Thanks again!
screenshot 3

gcode

Hi, the Gcode generator used here, does it exist separately? I would like to be able to use it for svg created outside of d2s.

cropped and rotated image/canvas

I use processing-3.3.4 to test and it seems like there is a hardcoded w/h ratio in the process. All images are centered and cropped with 4:3 ratio (or so, I don't know). Also all images I tried, even some of your included sample images in the pics folder, are rotated 90° CCW. It is easily fixed with the rotation feature you provided, but this only applied to the onscreen render. The generated pdf file is still has incrrect orientation. I don't know if the images from g-code would have correct orientation as I don't work with g-code. I don't have programms that render g-code to image.
Here is an image to show you the cropped result, left and right parts of the original image was cut off:

girl_face_clipped

Thanks for your work :)

keybind + gcode

keybind are incorrectly described in readme,
ctrl + number = Display drawing, pen number only

I had a problem to import gcode on polargraph controller, to solve i delete everything above the first z0 in gcode and everything below the last z0, perfect import .

[feature request] save as svg or dxf

Hello, I really like the style of your generated graphics. Really great work! Now I would like to print it with a penplotter. Can you please provide a function to save the graphics as a svg or dxf, so one can do whatever one wants with the graphic, like plotting it with InkScape (HPGL extension in InkScape). I would try to implement it myself in a fork, but I've never programmed Processing before.
Thank you in advance!

Marek

Hi.
I am newbie iin drawbots.
I like the pictures, what are making with this program.
My problem is, I dont know hoe open, or export the image to this code. I downloaded processing, have created folder with all pde files. Opened processing... I dont know what next. Please, help to older man...

Cannot find a class or type named “Limit”

First time trying to run this and I get this error:

Cannot find a class or type named “Limit”
Not sure what to do now?

If there is a step I'm missing I'd love to know.
I'm using a Mac with Catalina and running Processing app 3.5.4.

Claryfing pen usage

Great piece of software!!!!
I have a couple of doubts on the use of pens. By default there is certain list of pens or pens combinations hardcoded in the software. The program just uses this pen combinations to make the final drawing.

Do the colors present in each combination try to represent the colors in the actual image?
Is there a way to setup a cmyk pen combination? Just the 4 colors, but so that each pen draws the correponding color in the original image? Like making the color separation of the image and drawing it in only the corresponding color.

Once again great software. Keep it up. Ive learned tons of Processing trying to interpret it.

References - where buy the pen?

Hi

Congratulations for this software is Great. Can you explain me how get the pen of each colors?, i.e, Hoy I can draw the different color with commercial pen?

Thanks your very much for your response

Gcode file

Hi, where the gcode file was saved?
i don't understand the procedure to save gcode!
Have a nice day Man!

Scrolling through Pen Sets

When scrolling through the different pen sets, when going back to the first, if you press one more time, the program ends with a "ArrayIndexOutOfBoundsException:-1

Guess the culprit is the "render_with_copic" routine

Regards,

drawing

I am able to run "Drawbot_image_to_gcode_v2" and upload a .png file. I can see the image getting created on the display window. After pressing "g", multiple .txt , .svg and pdf files are created in the gcode folder. But, there is no .txt file that corresponds to the gcode of the complete image (that is uploded).

I want one gcode file which corresponds to the complete image.
I am using processing 3.5.4. Attached are the files for the reference.

Any help is appreciated

gcode_mickey_mouse_outline_pen0_100.pdf
gcode_mickey_mouse_outline_pen1_N10.pdf
gcode_mickey_mouse_outline_pen2_N8.pdf
gcode_mickey_mouse_outline_pen3_N6.pdf
gcode_mickey_mouse_outline_pen4_N4.pdf
gcode_mickey_mouse_outline_pen5_N2.pdf

input_image_mickey_mouse

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.