software to render gcode to image to generate thumbnails
 
Notifiche
Cancella tutti

software to render gcode to image to generate thumbnails  

  RSS
_KaszpiR_
(@_kaszpir_)
Prominent Member
software to render gcode to image to generate thumbnails

Hey, I've been doing some tweaks to my Linux to see 3mf stl or gcode previews in file manager such as  Thunar - currently I added scripts to subdirectory under https://github.com/nvtkaszpir/3d-print/tree/main/linux-thumbnails

I've found some examples for 3mf and stl, or gcode thumbnail extractors, but the problem starts if gcode does not have a thumbnail (well, the same is for 3mf but prusaslicer can export models and those can be processed later). Side note is that bgcode is easy to process beause prusa provides lib for it though it needs to be compiled, and the tool allows converting gcode to bgcode and vice versa.

I'm looking for software which would allow to run in cli to convert gcode file to image non-interactively.

I've been searching a bit over the forum and looks like there is absolutely nothing in search when asking for 'gcode image' or 'gcode thumbnail' - a bit odd...

Over the net there are some projects but they are quite old (over 4y so may need adjustments) or are not providing non-interactive mode, but I haven't checked most of them yet (just quick reading over the readmes).

Any suggestions?

See my GitHub and printables.com for some 3d stuff that you may like.

Postato : 12/12/2023 8:17 am
_KaszpiR_
(@_kaszpir_)
Prominent Member
Topic starter answered:
RE: software to render gcode to image to generate thumbnails

If someone interested then looks like 'gcode mayavi' in Google search gives best result and should point to rponin GitHub, I did some updates of the code for Python 3, but still some gcode processing is lacking. I have to review forks of the project over the weekend and see how it goes there.

See my GitHub and printables.com for some 3d stuff that you may like.

Postato : 15/12/2023 11:15 pm
_KaszpiR_
(@_kaszpir_)
Prominent Member
Topic starter answered:
RE: software to render gcode to image to generate thumbnails

If someone interested in some basic gcode to png rendering that works with current toolset (like python, libs etc):

https://github.com/nvtkaszpir/gcode2png

See my GitHub and printables.com for some 3d stuff that you may like.

Postato : 17/12/2023 2:40 pm
WoodenDavid
(@woodendavid)
New Member
RE: software to render gcode to image to generate thumbnails

Well, there is https://github.com/jkavalik/GcodeThumbnailExtension for windows and https://github.com/DavidPhillipOster/ThumbHost3mf for macOS - the macOS one is in Objective-C, but it is in a very C-like style. it handles reading .3mf and .gcode files with PNG, JPG, or QOI format thumbnails.

Postato : 15/01/2024 6:29 pm
_KaszpiR_ hanno apprezzato
_KaszpiR_
(@_kaszpir_)
Prominent Member
Topic starter answered:
RE: software to render gcode to image to generate thumbnails

AFAIR   https://github.com/jkavalik/GcodeThumbnailExtension is not needed anymore because installing PrusaSlicer integrates as thumbnail generator (at least there was no need for anything special under Windows 10 and PrusaSlizer 2.6.1)

See my GitHub and printables.com for some 3d stuff that you may like.

Postato : 15/01/2024 8:39 pm
WoodenDavid hanno apprezzato
Condividi: