Skill / SKILL.md

image2gcode

BaratiLab/mechanical-engineering-skills

Turns a photo, hand sketch, or slice image of a 2D/2.5D part directly into printer-ready FDM G-code without CAD, following the Image2Gcode pipeline — boundary extraction to a 224×224 silhouette, per-layer (X,Y,E) toolpath keypoints, denormalization to printer G-code with header/footer, and validation (build limits, extrusion monotonicity, travel distance). Use when the user wants to print something from a picture or drawing, convert an image or outline to G-code, analyze or normalize G-code toolpaths, or work with the Image2Gcode diffusion model's input/output format.
2 views 33 repository stars 0 commentsUpdated Nov 28, 2026
Overview

Turns a photo, hand sketch, or slice image of a 2D/2.5D part directly into printer-ready FDM G-code without CAD, following the Image2Gcode pipeline — boundary extraction to a 224×224 silhouette, per-layer (X,Y,E) toolpath keypoints, denormalization to printer G-code with header/footer, and validation (build limits, extrusion monotonicity, travel distance). Use when the user wants to print something from a picture or drawing, convert an image or outline to G-code, analyze or normalize G-code toolpaths, or work with the Image2Gcode diffusion model's input/output format.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/BaratiLab/mechanical-engineering-skills' skill-source

Use the complete skill-source/skills/image2gcode directory with your client’s skill installer.

Source directory skills/image2gcode

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
cc6fc44a93a6b8f792244be0ab18b8047072dc25da662eb61f9264ae7f483a9a
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills