Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Plugin for converting images to g-code for laser engraving
#4
I don't really understand why you import gtk just to open a FileChooser.

If you want to create a file from the current image, then you define a file-export plugin. Gimp will then handle the file picker for you. Registration is a bit more complicated that your regular plugin but there are examples (for instance the file-openraster.py plugin that comes in Gimp 2.10).

Otherwise you can just as well make it an independent application and remove the dependency on Gimp. There are Python libraries to load images (PIL or its "pillow" derivative, among others).
Reply


Messages In This Thread
RE: Plugin for converting images to g-code for laser engraving - by Ofnuts - 02-07-2019, 04:39 PM

Forum Jump: