Author Topic: Image To Gerber Converter  (Read 7473 times)

0 Members and 2 Guests are viewing this topic.

Offline jordileft

  • Contributor
  • Posts: 5
  • Country: es
Image To Gerber Converter
« on: March 14, 2016, 09:57:50 am »
Hi everyone,

I've developed a software for converting images to gerber files, it works great for me so I thought it could be useful for other people.

You can download it for free but it's been many hours of work, so if it's useful for you any contribution would be really appreciated.

https://imagetogerber.wordpress.com/



Best regards,
 

Offline BravoV

  • Super Contributor
  • ***
  • Posts: 6767
  • Country: 00
  • +++ ATH1
Re: Image To Gerber Converter
« Reply #1 on: March 14, 2016, 10:01:20 am »
Interesting reverse engineer tool, downloading ... thanks !  :-+

Offline krivx

  • Frequent Contributor
  • **
  • Posts: 763
  • Country: ie
Re: Image To Gerber Converter
« Reply #2 on: March 14, 2016, 11:22:06 am »
Is it possible to edit the layers as images, before they are converted to gerbers? In the example shown the silkscreen text is "cutting" into a copper layer, it would be nice to correct that in something like Photoshop.
 

Offline jordileft

  • Contributor
  • Posts: 5
  • Country: es
Re: Image To Gerber Converter
« Reply #3 on: March 14, 2016, 11:32:41 am »
Of course, you edit your image with Paint, Photoshop or anything similar, save your changes and then load the new image with the app.
 

Offline doctormord

  • Regular Contributor
  • *
  • Posts: 190
  • Country: cx
  • !nop
    • #fine_arts & #electronics - 360customs.de
Re: Image To Gerber Converter
« Reply #4 on: March 16, 2016, 02:42:01 am »
Interesting, how does it works for the drills?
#fine_arts & #electronics  - www.360customs.de
 

Offline jordileft

  • Contributor
  • Posts: 5
  • Country: es
Re: Image To Gerber Converter
« Reply #5 on: March 16, 2016, 06:17:58 am »
Interesting, how does it works for the drills?

The result for any desired objects of the circuits always depends on its color. If drills have a different color than any other object in the pcb then its perfect, 'cause you can get a direct output, if there are some other objects with the same color you have two options, edit the image prior to using the app or use a gerber editor if you can get one to edit the resulting gerber.
 

Offline IconicPCB

  • Super Contributor
  • ***
  • Posts: 1345
  • Country: au
Re: Image To Gerber Converter
« Reply #6 on: March 23, 2016, 08:05:38 pm »
Jordie,
Thanks.

I am having some problems

invoking java -jar ImageToGerber.jar results in a bunch of errors

Quote
Exception in thread "main" java.lang.UnsupportedClassVersionError: imagetogerber/myJFrame : Unsupported major.minor version 52.0
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
   at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
   at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)


invoking java -version offers

Quote
java version "1.7.0_95"
OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-0ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)


Any hints on how to get it going?
 

Offline jordileft

  • Contributor
  • Posts: 5
  • Country: es
Re: Image To Gerber Converter
« Reply #7 on: March 23, 2016, 08:33:42 pm »
I think that you need java 1.8 for running it. Try that and let me know!
 

Offline IconicPCB

  • Super Contributor
  • ***
  • Posts: 1345
  • Country: au
Re: Image To Gerber Converter
« Reply #8 on: March 24, 2016, 03:58:17 am »
Works on 1.8
Will put it through it's paces .
 

Offline IconicPCB

  • Super Contributor
  • ***
  • Posts: 1345
  • Country: au
Re: Image To Gerber Converter
« Reply #9 on: March 24, 2016, 09:44:47 pm »
Jordie,

An interesting tool.

Have You considered providing a colour pallet rather than colour ( RGB) value input)? This would be less flexible but it would eliminate the ( unnecessary? ) keyboard interaction.

I see that You are using a polygon tool to define the layer content when converting to Gerber. Is there a way to define a small round tool to actually draw the Gerber layer ( as opposed to polygon ). It may be easier to edit the Gerbers when drawn this way. It may also be easier to convert draws to flashes rather than converting parts of a polygon to flashes.
 

Offline jordileft

  • Contributor
  • Posts: 5
  • Country: es
Re: Image To Gerber Converter
« Reply #10 on: March 29, 2016, 05:51:02 am »
Thanks for your feedback!

I don't think a colour pallet would be a good choice, if some day I improve the current version probably I would add a color "picker", this way you have the same precission while supressing user input.

Initially, this application defined objects as draws as you suggest, the problem is that the resulting gerbers most of the time were really heavy. As many gerber editors have a tool for converting from polygon to draws or flashes I prefer to define everything as a polygon so the application resulting files are as simple and light as possible.

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf