Re: [kicad-users] Re: Images and logo inside PCB

2010-05-24 Thread Jean-Paul Gendner
Manny Tanks. 

I do not have anymore the script (I understood it was only for
Linux), however it will be stored on the Kicad site.

 

Regards,

Jean-Paul

 



Jean-Paul Gendner

03.88.27.03.44

  _  

De : kicad-users@yahoogroups.com [mailto:kicad-us...@yahoogroups.com] De la
part de Robert
Envoyé : vendredi 21 mai 2010 20:04
À : kicad-users@yahoogroups.com
Objet : *** SPAM ***Re: [kicad-users] Re: Images and logo inside PCB

 

  

You need a bitmap editor capable of saving an ASCI PBM file, eg Gimp.

Firstly you should scale the image. raoulduke_esq's AWK script 
generates a raster scan, so you get as many lines as there are 
horizontal pixels. It's probably best to scale to about 100 horizontal 
pixels and quickly do the conversion to see what size it ends up on your 
board.

Next convert the image to black on a white background (shades of grey 
cannot be used). Then delete any anti-aliasing pixels so you get 
smooth edges, and generally tidy things up. This last step is tedious, 
so make sure you have the size correct first :).

To do a conversion save the image as an ASCII PBM, then pass it through 
raoulduke_esq's script. You can take the output from this and paste it 
into a kicad .mod file in which you've created a dummy footprint. The 
instructions for these last stages are given in my recent post which 
included his script.

Regards,

Robert.

On 21/05/2010 18:38, Jean-Paul Gendner wrote:
 Hi,



 Please (not urgent), may you describe in details all the steps
 to convert (under Windows XP) a .jpg file to be able to get it in a pcb ?



 Regards,

 Jean-Paul



 

 Jean-Paul Gendner

 03.88.27.03.44

 _

 De : kicad-users@yahoogroups.com mailto:kicad-users%40yahoogroups.com
[mailto:kicad-users@yahoogroups.com mailto:kicad-users%40yahoogroups.com ]
De la
 part de Claudio
 Envoyé : vendredi 21 mai 2010 17:27
 À : kicad-users@yahoogroups.com mailto:kicad-users%40yahoogroups.com 
 Objet : *** SPAM ***Re: [kicad-users] Re: Images and logo inside PCB





 I GOT IT !!!

 I installed cygwin and did.

 Thanks !!!







 2010/5/21 Claudiolistas.arquivo@mailto:listas.arqu...@gmail.com
mailto:listas.arquivo%40gmail.com 
 gmail.com

 Hi Robert.

 Thanks for posting your AWK script , I have tried with GAWK-WIN, running
on
 windows.
 I saved your script in text file and called it ConvertPBM.awk-- Is that
OK
 ?
 Then a use the Windows, START - EXECUTE C:\gawk-win\gawk -f
ConvertPBM.awk
 test.pbm C:\gawk-win\art.out

 C:\gawk-win = where my executeble and test.pbm are

 I also tried C:\gawk-win\gawk -f ConvertPBM.awk test.pbm art.out

 But nothing have happened, and no art.out file was created.

 Please what am I doing wrong ?

 Thanks!!

 Claudio.









 2010/5/21 Robertbirmingham_spider@mailto:birmingham_spi...@gmx.net
mailto:birmingham_spider%40gmx.net 
 gmx.net

 Yes, his name is Devid Spagni - see
 http://tech.http://tech.groups.yahoo.com/group/kicad-users/message/6928
 groups.yahoo.com/group/kicad-users/message/6928. He's
 aware of the problems, but I don't think he is actively working on
 TTConv. He has said that TTConv needs a lot of work. The original
 Python scripts are here if you fancy sorting them out yourself:
 http://www.mige.
 http://www.mige.altervista.org/index.php?mod=Download/Kicad_Utility
 altervista.org/index.php?mod=Download/Kicad_Utility.

 I would agree that it would be nice to have an easy to use import
 facility, preferably from the kicad File menu, but it's a matter of
 finding the time to write it. The method needs to be cross-platform.
 Graphics import can be done right now (using cross-platform tools),
 but the methods are ugly. The method I would recommend for bitmaps is
 to convert the image to an ASCII PBM using Gimp, and then use the AWK
 script I re-posted. Have you tried that? This is a lot quicker and
 easier than editing someone else's scripts :), even if you have to
 download and install gimp and cygwin.

 Robert.


 On 21/05/2010 07:57, ferraro.giuseppe@mailto:ferraro.giuse...@ymail.com
mailto:ferraro.giuseppe%40ymail.com 
 ymail.com wrote:

 Hi,
 do You know how is author of TTconv?
 Is it possible to fix the bug in Your opinion?
 I think is important for kicad's people.
 Are You agree?
 G


 --- In kicad-users@mailto:kicad-users@yahoogroups.com
mailto:kicad-users%40yahoogroups.com  yahoogroups.com,
 Robertbirmingham_spi...@... wrote:

 That's me, but I didn't write either TTConv or the AWK script. All I
 did was compile the TTConv Python script into a .exe for ease of use by
 Windows users (as Windows doesn't come with a Python interpreter).

 I use TTConv to import DXFs. For bitmaps I prefer to use
 raoulduke_esq's AWK script (run using cygwin). That works nicely, but
 you do need to delete anti-aliasing pixels before converting (easy, but
 tedious).

 Regards,

 Robert.

 On 20/05/2010 11:59, ferraro.giuse...@... wrote:

 Somebody know how contact brownbrummig member?
 His profile

Re: [kicad-users] Re: Images and logo inside PCB

2010-05-24 Thread Robert
Yes, it will be somewhere on the Yahoo groups website for kicad (best 
searched using google) - I'm not posting it yet again :).   I posted the 
second copy last week.

The script can be run under Windows using cygwin, but AWK 
implementations for Windows may work too.   Cygwin has the advantage 
that it can be used for all sorts of linuxy things on Windows.

Markus's JaveE application sounds like it might be an easier solution 
(though I haven't looked at it myself).

Regards,

Robert.

On 21/05/2010 20:34, Jean-Paul Gendner wrote:
 Manny Tanks.

  I do not have anymore the script (I understood it was only for
 Linux), however it will be stored on the Kicad site.



  Regards,

  Jean-Paul



 

 Jean-Paul Gendner

 03.88.27.03.44

_

 De : kicad-users@yahoogroups.com [mailto:kicad-us...@yahoogroups.com] De la
 part de Robert
 Envoyé : vendredi 21 mai 2010 20:04
 À : kicad-users@yahoogroups.com
 Objet : *** SPAM ***Re: [kicad-users] Re: Images and logo inside PCB





 You need a bitmap editor capable of saving an ASCI PBM file, eg Gimp.

 Firstly you should scale the image. raoulduke_esq's AWK script
 generates a raster scan, so you get as many lines as there are
 horizontal pixels. It's probably best to scale to about 100 horizontal
 pixels and quickly do the conversion to see what size it ends up on your
 board.

 Next convert the image to black on a white background (shades of grey
 cannot be used). Then delete any anti-aliasing pixels so you get
 smooth edges, and generally tidy things up. This last step is tedious,
 so make sure you have the size correct first :).

 To do a conversion save the image as an ASCII PBM, then pass it through
 raoulduke_esq's script. You can take the output from this and paste it
 into a kicad .mod file in which you've created a dummy footprint. The
 instructions for these last stages are given in my recent post which
 included his script.

 Regards,

 Robert.

 On 21/05/2010 18:38, Jean-Paul Gendner wrote:
 Hi,



 Please (not urgent), may you describe in details all the steps
 to convert (under Windows XP) a .jpg file to be able to get it in a pcb ?



 Regards,

 Jean-Paul



 

 Jean-Paul Gendner

 03.88.27.03.44

 _

 De : kicad-users@yahoogroups.commailto:kicad-users%40yahoogroups.com
 [mailto:kicad-users@yahoogroups.commailto:kicad-users%40yahoogroups.com  ]
 De la
 part de Claudio
 Envoyé : vendredi 21 mai 2010 17:27
 À : kicad-users@yahoogroups.commailto:kicad-users%40yahoogroups.com
 Objet : *** SPAM ***Re: [kicad-users] Re: Images and logo inside PCB





 I GOT IT !!!

 I installed cygwin and did.

 Thanks !!!







 2010/5/21 Claudiolistas.arquivo@mailto:listas.arqu...@gmail.com
 mailto:listas.arquivo%40gmail.com  
 gmail.com

 Hi Robert.

 Thanks for posting your AWK script , I have tried with GAWK-WIN, running
 on
 windows.
 I saved your script in text file and called it ConvertPBM.awk-- Is that
 OK
 ?
 Then a use the Windows, START -  EXECUTE C:\gawk-win\gawk -f
 ConvertPBM.awk
 test.pbm  C:\gawk-win\art.out

 C:\gawk-win = where my executeble and test.pbm are

 I also tried C:\gawk-win\gawk -f ConvertPBM.awk test.pbm  art.out

 But nothing have happened, and no art.out file was created.

 Please what am I doing wrong ?

 Thanks!!

 Claudio.









 2010/5/21 Robertbirmingham_spider@mailto:birmingham_spi...@gmx.net
 mailto:birmingham_spider%40gmx.net  
 gmx.net

 Yes, his name is Devid Spagni - see
 http://tech.http://tech.groups.yahoo.com/group/kicad-users/message/6928
 groups.yahoo.com/group/kicad-users/message/6928. He's
 aware of the problems, but I don't think he is actively working on
 TTConv. He has said that TTConv needs a lot of work. The original
 Python scripts are here if you fancy sorting them out yourself:
 http://www.mige.
 http://www.mige.altervista.org/index.php?mod=Download/Kicad_Utility
 altervista.org/index.php?mod=Download/Kicad_Utility.

 I would agree that it would be nice to have an easy to use import
 facility, preferably from the kicad File menu, but it's a matter of
 finding the time to write it. The method needs to be cross-platform.
 Graphics import can be done right now (using cross-platform tools),
 but the methods are ugly. The method I would recommend for bitmaps is
 to convert the image to an ASCII PBM using Gimp, and then use the AWK
 script I re-posted. Have you tried that? This is a lot quicker and
 easier than editing someone else's scripts :), even if you have to
 download and install gimp and cygwin.

 Robert.


 On 21/05/2010 07:57, ferraro.giuseppe@mailto:ferraro.giuse...@ymail.com
 mailto:ferraro.giuseppe%40ymail.com  
 ymail.com wrote:

 Hi,
 do You know how is author of TTconv?
 Is it possible to fix the bug in Your opinion?
 I think is important for kicad's people.
 Are You agree?
 G


 --- In kicad-users@mailto:kicad-users@yahoogroups.com
 mailto:kicad-users%40yahoogroups.comyahoogroups.com,
 Robertbirmingham_spi

Re: [kicad-users] Re: Images and logo inside PCB

2010-05-21 Thread Robert
Yes, his name is Devid Spagni - see
http://tech.groups.yahoo.com/group/kicad-users/message/6928.   He's
aware of the problems, but I don't think he is actively working on
TTConv.   He has said that TTConv needs a lot of work.   The original
Python scripts are here if you fancy sorting them out yourself:
http://www.mige.altervista.org/index.php?mod=Download/Kicad_Utility.

I would agree that it would be nice to have an easy to use import
facility, preferably from the kicad File menu, but it's a matter of
finding the time to write it.   The method needs to be cross-platform.
   Graphics import can be done right now (using cross-platform tools),
but the methods are ugly.   The method I would recommend for bitmaps is
to convert the image to an ASCII PBM using Gimp, and then use the AWK
script I re-posted.   Have you tried that?   This is a lot quicker and
easier than editing someone else's scripts :), even if you have to
download and install gimp and cygwin.

Robert.

On 21/05/2010 07:57, ferraro.giuse...@ymail.com wrote:

 Hi,
 do You know how is author of TTconv?
 Is it possible to fix the bug in Your opinion?
 I think is important for kicad's people.
 Are You agree?
 G


 --- In kicad-users@yahoogroups.com, Robertbirmingham_spi...@...  wrote:

 That's me, but I didn't write either TTConv or the AWK script.   All I
 did was compile the TTConv Python script into a .exe for ease of use by
 Windows users (as Windows doesn't come with a Python interpreter).

 I use TTConv to import DXFs.   For bitmaps I prefer to use
 raoulduke_esq's AWK script (run using cygwin).   That works nicely, but
 you do need to delete anti-aliasing pixels before converting (easy, but
 tedious).

 Regards,

 Robert.

 On 20/05/2010 11:59, ferraro.giuse...@... wrote:

 Somebody know how contact brownbrummig member?
 His profile is not available so I can't send him a message.
 The programa that He wrote is a good program but there is a bug and I need 
 to speak with him.
 Bye to all

 G

 --- In kicad-users@yahoogroups.com, Jamesjamesrsweet@   wrote:



 --- In kicad-users@yahoogroups.com, ferraro.giuseppe@ferraro.giuseppe@ 
   wrote:

 Hi,
 I'm trying to insert an image in PCB. How can I do?
 I'm using WINDOWS VERSION, last version.
 Bye
 G




 I have run into this same problem. It seems there is no direct way to do 
 this, it would certainly be a very nice feature to have.





 

 Please read the Kicad FAQ in the group files section before posting your 
 question.
 Please post your bug reports here. They will be picked up by the creator of 
 Kicad.
 Please visit http://www.kicadlib.org for details of how to contribute your 
 symbols/modules to the kicad library.
 For building Kicad from source and other development questions visit the 
 kicad-devel group at http://groups.yahoo.com/group/kicad-develYahoo! Groups 
 Links






 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 9.0.819 / Virus Database: 271.1.1/2884 - Release Date: 05/19/10 
 19:26:00



 No virus found in this outgoing message.
 Checked by AVG - www.avg.com
 Version: 9.0.819 / Virus Database: 271.1.1/2884 - Release Date: 05/19/10 
 19:26:00





 

 Please read the Kicad FAQ in the group files section before posting your 
 question.
 Please post your bug reports here. They will be picked up by the creator of 
 Kicad.
 Please visit http://www.kicadlib.org for details of how to contribute your 
 symbols/modules to the kicad library.
 For building Kicad from source and other development questions visit the 
 kicad-devel group at http://groups.yahoo.com/group/kicad-develYahoo! Groups 
 Links






 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 9.0.819 / Virus Database: 271.1.1/2885 - Release Date: 05/20/10 
 07:26:00

No virus found in this outgoing message.
Checked by AVG - www.avg.com 
Version: 9.0.819 / Virus Database: 271.1.1/2885 - Release Date: 05/20/10 
07:26:00


Re: [kicad-users] Re: Images and logo inside PCB

2010-05-21 Thread Claudio
Hi Robert.

Thanks for posting your AWK script , I have tried with GAWK-WIN, running on
windows.
I saved your script in text file and called it ConvertPBM.awk -- Is that OK
?
Then a use the Windows, START - EXECUTE C:\gawk-win\gawk -f ConvertPBM.awk
test.pbm  C:\gawk-win\art.out

C:\gawk-win = where my executeble and test.pbm are

I also tried C:\gawk-win\gawk -f ConvertPBM.awk test.pbm  art.out

But nothing have happened, and no art.out file was created.

Please what am I doing wrong ?

Thanks!!

Claudio.








2010/5/21 Robert birmingham_spi...@gmx.net

 Yes, his name is Devid Spagni - see
 http://tech.groups.yahoo.com/group/kicad-users/message/6928.   He's
 aware of the problems, but I don't think he is actively working on
 TTConv.   He has said that TTConv needs a lot of work.   The original
 Python scripts are here if you fancy sorting them out yourself:
 http://www.mige.altervista.org/index.php?mod=Download/Kicad_Utility.

 I would agree that it would be nice to have an easy to use import
 facility, preferably from the kicad File menu, but it's a matter of
 finding the time to write it.   The method needs to be cross-platform.
   Graphics import can be done right now (using cross-platform tools),
 but the methods are ugly.   The method I would recommend for bitmaps is
 to convert the image to an ASCII PBM using Gimp, and then use the AWK
 script I re-posted.   Have you tried that?   This is a lot quicker and
 easier than editing someone else's scripts :), even if you have to
 download and install gimp and cygwin.

 Robert.

 On 21/05/2010 07:57, ferraro.giuse...@ymail.com wrote:
 
  Hi,
  do You know how is author of TTconv?
  Is it possible to fix the bug in Your opinion?
  I think is important for kicad's people.
  Are You agree?
  G
 
 
  --- In kicad-users@yahoogroups.com, Robertbirmingham_spi...@...
  wrote:
 
  That's me, but I didn't write either TTConv or the AWK script.   All I
  did was compile the TTConv Python script into a .exe for ease of use by
  Windows users (as Windows doesn't come with a Python interpreter).
 
  I use TTConv to import DXFs.   For bitmaps I prefer to use
  raoulduke_esq's AWK script (run using cygwin).   That works nicely, but
  you do need to delete anti-aliasing pixels before converting (easy, but
  tedious).
 
  Regards,
 
  Robert.
 
  On 20/05/2010 11:59, ferraro.giuse...@... wrote:
 
  Somebody know how contact brownbrummig member?
  His profile is not available so I can't send him a message.
  The programa that He wrote is a good program but there is a bug and I
 need to speak with him.
  Bye to all
 
  G
 
  --- In kicad-users@yahoogroups.com, Jamesjamesrsweet@   wrote:
 
 
 
  --- In kicad-users@yahoogroups.com, ferraro.giuseppe@
 ferraro.giuseppe@   wrote:
 
  Hi,
  I'm trying to insert an image in PCB. How can I do?
  I'm using WINDOWS VERSION, last version.
  Bye
  G
 
 
 
 
  I have run into this same problem. It seems there is no direct way to
 do this, it would certainly be a very nice feature to have.
 
 
 
 
 
  
 
  Please read the Kicad FAQ in the group files section before posting
 your question.
  Please post your bug reports here. They will be picked up by the
 creator of Kicad.
  Please visit http://www.kicadlib.org for details of how to contribute
 your symbols/modules to the kicad library.
  For building Kicad from source and other development questions visit
 the kicad-devel group at http://groups.yahoo.com/group/kicad-develYahoo!
 Groups Links
 
 
 
 
 
 
  No virus found in this incoming message.
  Checked by AVG - www.avg.com
  Version: 9.0.819 / Virus Database: 271.1.1/2884 - Release Date:
 05/19/10 19:26:00
 
 
 
  No virus found in this outgoing message.
  Checked by AVG - www.avg.com
  Version: 9.0.819 / Virus Database: 271.1.1/2884 - Release Date: 05/19/10
 19:26:00
 
 
 
 
 
  
 
  Please read the Kicad FAQ in the group files section before posting your
 question.
  Please post your bug reports here. They will be picked up by the creator
 of Kicad.
  Please visit http://www.kicadlib.org for details of how to contribute
 your symbols/modules to the kicad library.
  For building Kicad from source and other development questions visit the
 kicad-devel group at http://groups.yahoo.com/group/kicad-develYahoo!
 Groups Links
 
 
 
 
 
 
  No virus found in this incoming message.
  Checked by AVG - www.avg.com
  Version: 9.0.819 / Virus Database: 271.1.1/2885 - Release Date: 05/20/10
 07:26:00
 

 

 Please read the Kicad FAQ in the group files section before posting your
 question.
 Please post your bug reports here. They will be picked up by the creator of
 Kicad.
 Please visit http://www.kicadlib.org for details of how to contribute your
 symbols/modules to the kicad library.
 For building Kicad from source and other development questions visit the
 kicad-devel group at http://groups.yahoo.com/group/kicad-develYahoo!
 Groups 

Re: [kicad-users] Re: Images and logo inside PCB

2010-05-21 Thread Claudio
I GOT IT !!!

I installed cygwin and did.

Thanks !!!






2010/5/21 Claudio listas.arqu...@gmail.com

 Hi Robert.

 Thanks for posting your AWK script , I have tried with GAWK-WIN, running on
 windows.
 I saved your script in text file and called it ConvertPBM.awk -- Is that
 OK ?
 Then a use the Windows, START - EXECUTE C:\gawk-win\gawk -f ConvertPBM.awk
 test.pbm  C:\gawk-win\art.out

 C:\gawk-win = where my executeble and test.pbm are

 I also tried C:\gawk-win\gawk -f ConvertPBM.awk test.pbm  art.out

 But nothing have happened, and no art.out file was created.

 Please what am I doing wrong ?

 Thanks!!

 Claudio.








 2010/5/21 Robert birmingham_spi...@gmx.net

 Yes, his name is Devid Spagni - see
 http://tech.groups.yahoo.com/group/kicad-users/message/6928.   He's
 aware of the problems, but I don't think he is actively working on
 TTConv.   He has said that TTConv needs a lot of work.   The original
 Python scripts are here if you fancy sorting them out yourself:
 http://www.mige.altervista.org/index.php?mod=Download/Kicad_Utility.

 I would agree that it would be nice to have an easy to use import
 facility, preferably from the kicad File menu, but it's a matter of
 finding the time to write it.   The method needs to be cross-platform.
   Graphics import can be done right now (using cross-platform tools),
 but the methods are ugly.   The method I would recommend for bitmaps is
 to convert the image to an ASCII PBM using Gimp, and then use the AWK
 script I re-posted.   Have you tried that?   This is a lot quicker and
 easier than editing someone else's scripts :), even if you have to
 download and install gimp and cygwin.

 Robert.

 On 21/05/2010 07:57, ferraro.giuse...@ymail.com wrote:
 
  Hi,
  do You know how is author of TTconv?
  Is it possible to fix the bug in Your opinion?
  I think is important for kicad's people.
  Are You agree?
  G
 
 
  --- In kicad-users@yahoogroups.com, Robertbirmingham_spi...@...
  wrote:
 
  That's me, but I didn't write either TTConv or the AWK script.   All I
  did was compile the TTConv Python script into a .exe for ease of use by
  Windows users (as Windows doesn't come with a Python interpreter).
 
  I use TTConv to import DXFs.   For bitmaps I prefer to use
  raoulduke_esq's AWK script (run using cygwin).   That works nicely, but
  you do need to delete anti-aliasing pixels before converting (easy, but
  tedious).
 
  Regards,
 
  Robert.
 
  On 20/05/2010 11:59, ferraro.giuse...@... wrote:
 
  Somebody know how contact brownbrummig member?
  His profile is not available so I can't send him a message.
  The programa that He wrote is a good program but there is a bug and I
 need to speak with him.
  Bye to all
 
  G
 
  --- In kicad-users@yahoogroups.com, Jamesjamesrsweet@   wrote:
 
 
 
  --- In kicad-users@yahoogroups.com, ferraro.giuseppe@
 ferraro.giuseppe@   wrote:
 
  Hi,
  I'm trying to insert an image in PCB. How can I do?
  I'm using WINDOWS VERSION, last version.
  Bye
  G
 
 
 
 
  I have run into this same problem. It seems there is no direct way to
 do this, it would certainly be a very nice feature to have.
 
 
 
 
 
  
 
  Please read the Kicad FAQ in the group files section before posting
 your question.
  Please post your bug reports here. They will be picked up by the
 creator of Kicad.
  Please visit http://www.kicadlib.org for details of how to contribute
 your symbols/modules to the kicad library.
  For building Kicad from source and other development questions visit
 the kicad-devel group at http://groups.yahoo.com/group/kicad-develYahoo!
 Groups Links
 
 
 
 
 
 
  No virus found in this incoming message.
  Checked by AVG - www.avg.com
  Version: 9.0.819 / Virus Database: 271.1.1/2884 - Release Date:
 05/19/10 19:26:00
 
 
 
  No virus found in this outgoing message.
  Checked by AVG - www.avg.com
  Version: 9.0.819 / Virus Database: 271.1.1/2884 - Release Date:
 05/19/10 19:26:00
 
 
 
 
 
  
 
  Please read the Kicad FAQ in the group files section before posting your
 question.
  Please post your bug reports here. They will be picked up by the creator
 of Kicad.
  Please visit http://www.kicadlib.org for details of how to contribute
 your symbols/modules to the kicad library.
  For building Kicad from source and other development questions visit the
 kicad-devel group at http://groups.yahoo.com/group/kicad-develYahoo!
 Groups Links
 
 
 
 
 
 
  No virus found in this incoming message.
  Checked by AVG - www.avg.com
  Version: 9.0.819 / Virus Database: 271.1.1/2885 - Release Date: 05/20/10
 07:26:00
 

 

 Please read the Kicad FAQ in the group files section before posting your
 question.
 Please post your bug reports here. They will be picked up by the creator
 of Kicad.
 Please visit http://www.kicadlib.org for details of how to contribute
 your symbols/modules to the kicad library.
 For building Kicad from source and 

Re: [kicad-users] Re: Images and logo inside PCB

2010-05-21 Thread Robert
 Thanks for posting your AWK script , I have tried with GAWK-WIN, running on

Glad you got it sorted, but it's not my script, so please don't thank me 
for it!   The script was written by raoulduke_esq, who posted it on the 
kicad list.   It was just easier for me to grab it off my PC and repost 
it than go hunting for raoulduke_esq's original post.

Regards,

Robert.
No virus found in this outgoing message.
Checked by AVG - www.avg.com 
Version: 9.0.819 / Virus Database: 271.1.1/2887 - Release Date: 05/21/10 
07:26:00


Re: [kicad-users] Re: Images and logo inside PCB

2010-05-21 Thread Jean-Paul Gendner
Hi,

 

Please (not urgent), may you describe in details all the steps
to convert (under Windows XP) a .jpg file to be able to get it in a pcb ?

 

Regards,

Jean-Paul

 



Jean-Paul Gendner

03.88.27.03.44

  _  

De : kicad-users@yahoogroups.com [mailto:kicad-us...@yahoogroups.com] De la
part de Claudio
Envoyé : vendredi 21 mai 2010 17:27
À : kicad-users@yahoogroups.com
Objet : *** SPAM ***Re: [kicad-users] Re: Images and logo inside PCB

 

  

I GOT IT !!!

I installed cygwin and did.

Thanks !!!







2010/5/21 Claudio listas.arquivo@ mailto:listas.arqu...@gmail.com
gmail.com

Hi Robert.

Thanks for posting your AWK script , I have tried with GAWK-WIN, running on
windows. 
I saved your script in text file and called it ConvertPBM.awk -- Is that OK
?
Then a use the Windows, START - EXECUTE C:\gawk-win\gawk -f ConvertPBM.awk
test.pbm  C:\gawk-win\art.out

C:\gawk-win = where my executeble and test.pbm are

I also tried C:\gawk-win\gawk -f ConvertPBM.awk test.pbm  art.out

But nothing have happened, and no art.out file was created.

Please what am I doing wrong ?

Thanks!!

Claudio.









2010/5/21 Robert birmingham_spider@ mailto:birmingham_spi...@gmx.net
gmx.net

Yes, his name is Devid Spagni - see
http://tech. http://tech.groups.yahoo.com/group/kicad-users/message/6928
groups.yahoo.com/group/kicad-users/message/6928.   He's
aware of the problems, but I don't think he is actively working on
TTConv.   He has said that TTConv needs a lot of work.   The original
Python scripts are here if you fancy sorting them out yourself:
http://www.mige.
http://www.mige.altervista.org/index.php?mod=Download/Kicad_Utility
altervista.org/index.php?mod=Download/Kicad_Utility.

I would agree that it would be nice to have an easy to use import
facility, preferably from the kicad File menu, but it's a matter of
finding the time to write it.   The method needs to be cross-platform.
  Graphics import can be done right now (using cross-platform tools),
but the methods are ugly.   The method I would recommend for bitmaps is
to convert the image to an ASCII PBM using Gimp, and then use the AWK
script I re-posted.   Have you tried that?   This is a lot quicker and
easier than editing someone else's scripts :), even if you have to
download and install gimp and cygwin.

Robert.


On 21/05/2010 07:57, ferraro.giuseppe@ mailto:ferraro.giuse...@ymail.com
ymail.com wrote:

 Hi,
 do You know how is author of TTconv?
 Is it possible to fix the bug in Your opinion?
 I think is important for kicad's people.
 Are You agree?
 G


 --- In kicad-users@ mailto:kicad-users@yahoogroups.com yahoogroups.com,
Robertbirmingham_spi...@...  wrote:

 That's me, but I didn't write either TTConv or the AWK script.   All I
 did was compile the TTConv Python script into a .exe for ease of use by
 Windows users (as Windows doesn't come with a Python interpreter).

 I use TTConv to import DXFs.   For bitmaps I prefer to use
 raoulduke_esq's AWK script (run using cygwin).   That works nicely, but
 you do need to delete anti-aliasing pixels before converting (easy, but
 tedious).

 Regards,

 Robert.

 On 20/05/2010 11:59, ferraro.giuse...@... wrote:

 Somebody know how contact brownbrummig member?
 His profile is not available so I can't send him a message.
 The programa that He wrote is a good program but there is a bug and I
need to speak with him.
 Bye to all

 G

 --- In kicad-users@ mailto:kicad-users@yahoogroups.com
yahoogroups.com, Jamesjamesrsweet@   wrote:



 --- In kicad-users@ mailto:kicad-users@yahoogroups.com
yahoogroups.com, ferraro.giuseppe@ferraro.giuseppe@   wrote:

 Hi,
 I'm trying to insert an image in PCB. How can I do?
 I'm using WINDOWS VERSION, last version.
 Bye
 G




 I have run into this same problem. It seems there is no direct way to
do this, it would certainly be a very nice feature to have.





 

 Please read the Kicad FAQ in the group files section before posting your
question.
 Please post your bug reports here. They will be picked up by the creator
of Kicad.
 Please visit http://www.kicadlib http://www.kicadlib.org .org for
details of how to contribute your symbols/modules to the kicad library.
 For building Kicad from source and other development questions visit the
kicad-devel group at http://groups.
http://groups.yahoo.com/group/kicad-develYahoo
yahoo.com/group/kicad-develYahoo! Groups Links






 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 9.0.819 / Virus Database: 271.1.1/2884 - Release Date: 05/19/10
19:26:00



 No virus found in this outgoing message.
 Checked by AVG - www.avg.com
 Version: 9.0.819 / Virus Database: 271.1.1/2884 - Release Date: 05/19/10
19:26:00





 

 Please read the Kicad FAQ in the group files section before posting your
question.
 Please post your bug reports here. They will be picked up by the creator
of Kicad.
 Please

Re: [kicad-users] Re: Images and logo inside PCB

2010-05-21 Thread kajdas
You must have downloaded a Cygwin version of gawk which probably contains many 
Cygwin dependencies.
I have gawk-3.1.6-1 that works fine without Cygwin.
You should look for a stand alone version of the program which in my case is 
352kB long.
There are many versions but stand alone version is the key.
Martin

 Claudio listas.arqu...@gmail.com wrote: 

=
I GOT IT !!!

I installed cygwin and did.

Thanks !!!






2010/5/21 Claudio listas.arqu...@gmail.com

 Hi Robert.

 Thanks for posting your AWK script , I have tried with GAWK-WIN, running on
 windows.
 I saved your script in text file and called it ConvertPBM.awk -- Is that
 OK ?
 Then a use the Windows, START - EXECUTE C:\gawk-win\gawk -f ConvertPBM.awk
 test.pbm  C:\gawk-win\art.out

 C:\gawk-win = where my executeble and test.pbm are

 I also tried C:\gawk-win\gawk -f ConvertPBM.awk test.pbm  art.out

 But nothing have happened, and no art.out file was created.

 Please what am I doing wrong ?

 Thanks!!

 Claudio.



Re: [kicad-users] Re: Images and logo inside PCB

2010-05-21 Thread Claudio
So I have give  thanks to both you and him !


Thanks!





2010/5/21 Robert birmingham_spi...@gmx.net

  Thanks for posting your AWK script , I have tried with GAWK-WIN, running
 on

 Glad you got it sorted, but it's not my script, so please don't thank me
 for it!   The script was written by raoulduke_esq, who posted it on the
 kicad list.   It was just easier for me to grab it off my PC and repost
 it than go hunting for raoulduke_esq's original post.

 Regards,

 Robert.

 

 Please read the Kicad FAQ in the group files section before posting your
 question.
 Please post your bug reports here. They will be picked up by the creator of
 Kicad.
 Please visit http://www.kicadlib.org for details of how to contribute your
 symbols/modules to the kicad library.
 For building Kicad from source and other development questions visit the
 kicad-devel group at http://groups.yahoo.com/group/kicad-develYahoo!
 Groups Links






 No virus found in this outgoing message.
 Checked by AVG - www.avg.com
 Version: 9.0.819 / Virus Database: 271.1.1/2887 - Release Date: 05/21/10
 07:26:00




Re: [kicad-users] Re: Images and logo inside PCB

2010-05-21 Thread Robert
You need a bitmap editor capable of saving an ASCI PBM file, eg Gimp.

Firstly you should scale the image.   raoulduke_esq's AWK script 
generates a raster scan, so you get as many lines as there are 
horizontal pixels.   It's probably best to scale to about 100 horizontal 
pixels and quickly do the conversion to see what size it ends up on your 
board.

Next convert the image to black on a white background (shades of grey 
cannot be used).   Then delete any anti-aliasing pixels so you get 
smooth edges, and generally tidy things up.   This last step is tedious, 
so make sure you have the size correct first :).

To do a conversion save the image as an ASCII PBM, then pass it through 
raoulduke_esq's script.   You can take the output from this and paste it 
into a kicad .mod file in which you've created a dummy footprint.   The 
instructions for these last stages are given in my recent post which 
included his script.

Regards,

Robert.

On 21/05/2010 18:38, Jean-Paul Gendner wrote:
 Hi,



  Please (not urgent), may you describe in details all the steps
 to convert (under Windows XP) a .jpg file to be able to get it in a pcb ?



  Regards,

  Jean-Paul



 

 Jean-Paul Gendner

 03.88.27.03.44

_

 De : kicad-users@yahoogroups.com [mailto:kicad-us...@yahoogroups.com] De la
 part de Claudio
 Envoyé : vendredi 21 mai 2010 17:27
 À : kicad-users@yahoogroups.com
 Objet : *** SPAM ***Re: [kicad-users] Re: Images and logo inside PCB





 I GOT IT !!!

 I installed cygwin and did.

 Thanks !!!







 2010/5/21 Claudiolistas.arquivo@mailto:listas.arqu...@gmail.com
 gmail.com

 Hi Robert.

 Thanks for posting your AWK script , I have tried with GAWK-WIN, running on
 windows.
 I saved your script in text file and called it ConvertPBM.awk-- Is that OK
 ?
 Then a use the Windows, START -  EXECUTE C:\gawk-win\gawk -f ConvertPBM.awk
 test.pbm  C:\gawk-win\art.out

 C:\gawk-win = where my executeble and test.pbm are

 I also tried C:\gawk-win\gawk -f ConvertPBM.awk test.pbm  art.out

 But nothing have happened, and no art.out file was created.

 Please what am I doing wrong ?

 Thanks!!

 Claudio.









 2010/5/21 Robertbirmingham_spider@mailto:birmingham_spi...@gmx.net
 gmx.net

 Yes, his name is Devid Spagni - see
 http://tech.http://tech.groups.yahoo.com/group/kicad-users/message/6928
 groups.yahoo.com/group/kicad-users/message/6928.   He's
 aware of the problems, but I don't think he is actively working on
 TTConv.   He has said that TTConv needs a lot of work.   The original
 Python scripts are here if you fancy sorting them out yourself:
 http://www.mige.
 http://www.mige.altervista.org/index.php?mod=Download/Kicad_Utility
 altervista.org/index.php?mod=Download/Kicad_Utility.

 I would agree that it would be nice to have an easy to use import
 facility, preferably from the kicad File menu, but it's a matter of
 finding the time to write it.   The method needs to be cross-platform.
Graphics import can be done right now (using cross-platform tools),
 but the methods are ugly.   The method I would recommend for bitmaps is
 to convert the image to an ASCII PBM using Gimp, and then use the AWK
 script I re-posted.   Have you tried that?   This is a lot quicker and
 easier than editing someone else's scripts :), even if you have to
 download and install gimp and cygwin.

 Robert.


 On 21/05/2010 07:57, ferraro.giuseppe@mailto:ferraro.giuse...@ymail.com
 ymail.com wrote:

 Hi,
 do You know how is author of TTconv?
 Is it possible to fix the bug in Your opinion?
 I think is important for kicad's people.
 Are You agree?
 G


 --- In kicad-users@mailto:kicad-users@yahoogroups.com  yahoogroups.com,
 Robertbirmingham_spi...@...   wrote:

 That's me, but I didn't write either TTConv or the AWK script.   All I
 did was compile the TTConv Python script into a .exe for ease of use by
 Windows users (as Windows doesn't come with a Python interpreter).

 I use TTConv to import DXFs.   For bitmaps I prefer to use
 raoulduke_esq's AWK script (run using cygwin).   That works nicely, but
 you do need to delete anti-aliasing pixels before converting (easy, but
 tedious).

 Regards,

 Robert.

 On 20/05/2010 11:59, ferraro.giuse...@... wrote:

 Somebody know how contact brownbrummig member?
 His profile is not available so I can't send him a message.
 The programa that He wrote is a good program but there is a bug and I
 need to speak with him.
 Bye to all

 G

 --- In kicad-users@mailto:kicad-users@yahoogroups.com
 yahoogroups.com, Jamesjamesrsweet@wrote:



 --- In kicad-users@mailto:kicad-users@yahoogroups.com
 yahoogroups.com, ferraro.giuseppe@ferraro.giuseppe@wrote:

 Hi,
 I'm trying to insert an image in PCB. How can I do?
 I'm using WINDOWS VERSION, last version.
 Bye
 G




 I have run into this same problem. It seems there is no direct way to
 do this, it would certainly be a very nice feature to have

Re: [kicad-users] Re: Images and logo inside PCB

2010-05-20 Thread Robert
That's me, but I didn't write either TTConv or the AWK script.   All I 
did was compile the TTConv Python script into a .exe for ease of use by 
Windows users (as Windows doesn't come with a Python interpreter).

I use TTConv to import DXFs.   For bitmaps I prefer to use 
raoulduke_esq's AWK script (run using cygwin).   That works nicely, but 
you do need to delete anti-aliasing pixels before converting (easy, but 
tedious).

Regards,

Robert.

On 20/05/2010 11:59, ferraro.giuse...@ymail.com wrote:

 Somebody know how contact brownbrummig member?
 His profile is not available so I can't send him a message.
 The programa that He wrote is a good program but there is a bug and I need to 
 speak with him.
 Bye to all

 G

 --- In kicad-users@yahoogroups.com, Jamesjamesrsw...@...  wrote:



 --- In kicad-users@yahoogroups.com, ferraro.giuseppe@ferraro.giuseppe@  
 wrote:

 Hi,
 I'm trying to insert an image in PCB. How can I do?
 I'm using WINDOWS VERSION, last version.
 Bye
 G




 I have run into this same problem. It seems there is no direct way to do 
 this, it would certainly be a very nice feature to have.





 

 Please read the Kicad FAQ in the group files section before posting your 
 question.
 Please post your bug reports here. They will be picked up by the creator of 
 Kicad.
 Please visit http://www.kicadlib.org for details of how to contribute your 
 symbols/modules to the kicad library.
 For building Kicad from source and other development questions visit the 
 kicad-devel group at http://groups.yahoo.com/group/kicad-develYahoo! Groups 
 Links






 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 9.0.819 / Virus Database: 271.1.1/2884 - Release Date: 05/19/10 
 19:26:00

No virus found in this outgoing message.
Checked by AVG - www.avg.com 
Version: 9.0.819 / Virus Database: 271.1.1/2884 - Release Date: 05/19/10 
19:26:00


Re: [kicad-users] Re: Images and logo inside PCB

2010-05-19 Thread Robert
raoulduke_esq posted an AWK script a while back which works with ASCII 
PBMs.   I run this using cygwin and I've found it works well enough.   I 
don't have time to search for it in the group posts, so here it is:

# This script will take an ASCII PBM BW file and convert it to a series
# of DS (Draw Segment) statements in PCBNEW syntax.  The deltaX and deltaY
# is defined in step which is in uints of 1/10 mil.  The layer is 
currently
# set to 21, the component layer silkscreen.  Swap bg  fg based on whether
# black or white is the foreground.
#
# State 0 : look for magic number - must be P1 (can be P4 for raw file)
# State 1 : look for height  width
# State 2 : process data
# State 3 : done with data - skip the rest
#
BEGIN { state = 0; step = 40; layer = 21; fg = 1; bg = 0; }
{if (NR == 1) {
 state = 1;
 if ($1 != P1) {
 printf(Must supply an ASCII PBM image file\n);
 exit 1
 }
 next;
 }
}
/^#/{ next }  # Comment line, skip it
{if (state == 1) {
 width = $1;
 height = $2;
 buff = ;
 state = 2;
 Y = - ((step * height) / 2);
 initX = - ((step * width) / 2);
 next;
 }
}
{if (state == 2)  {
 buff = buff $1;
 if (length( buff ) = width) {
 scanline = substr( buff, 1, width );
 buff = substr( buff, width + 1 );
 Y += step;
 X = initX;
 while ( Z1 = index( scanline, fg )) {
 scanline = substr( scanline, Z1 );
 Z2 = index( scanline, bg );
 if (Z2 == 0)
 Z2 = length( scanline ) + 1;
 scanline = substr( scanline, Z2 );
 Z1 = step * Z1 + X;
 Z2 = step * Z2 + Z1 - 2 * step;
 X = Z2;
 printf( DS %d %d %d %d %d %d\n, Z1, Y, Z2, Y, step, 
layer );
 }
 height--;
 if (height == 0)
 state = 3;
 }
 }
}
{if (state == 3) { nextfile; }}

Instructions:

Step 1: Generate an ASCII PBM file - I use GIMP.  A monochrome (black 
and white) image will be represented by a file full of 0 and 1. Call 
it something like art.pbm.

Step 2: Run the ASCII PBM file art.pbm through the following awk 
script and put the output into a file, call it art.out:

 awk -f ConvertPBM.awk pic.pbm  art.out

Step 3: Create a module library with a single component, call it 
something like Logo.  The library will be called Logo.mod.

Step 4: Edit the module library Logo.mod, look for the $EndMODULE 
line, and copy the contents of art.out immediately before it.  Save 
the file.

Step 5: Edit the module library and move things around, add the module 
name, etc.

Step 6: In PCBnew, add the module from the library and place it where 
you want.

Regards,

Robert.

On 19/05/2010 15:49, ferraro.giuse...@ymail.com wrote:
 It seems that this program doesn't run correctly.
 When I try to convert an image JPG to BRD KICAD file, I have an error message:

 Traceback (most recent call last):
File 
 C:\apps\pyinstaller-1.3\TTConv0.2\buildTTConv0.2\out1.pyz/Wx_Image2Kicad
 , line 147, in OnSelBrdOut
File 
 C:\apps\pyinstaller-1.3\TTConv0.2\buildTTConv0.2\out1.pyz/wx._windows,
 line 711, in ShowModal
 wx._core.PyAssertionError: C++ assertion wxAssertFailure failed at 
 ..\..\src\c
 ommon\filefn.cpp(1746) in wxParseCommonDialogsFilter(): missing '|' in the 
 wildc
 ard string!

 I have installed pyton 3.1.1.
 Can You tell me something?
 regards
 G

 --- In kicad-users@yahoogroups.com, Andy Eskelsonandyya...@...  wrote:

 Have a look at TTConv in the group files.

 The one dated feb 8th looks to be the latest.

 One of it's functions is to import images, which may be what you want.

 If I remember correctly is intended to import things like logos rather
 than images as such.

 Andy




 On Wed, 19 May 2010 11:51:46 -
 ferraro.giuse...@...ferraro.giuse...@...  wrote:

 Hi,
 I'm trying to insert an image in PCB. How can I do?
 I'm using WINDOWS VERSION, last version.
 Bye
 G




 

 Please read the Kicad FAQ in the group files section before posting your 
 question.
 Please post your bug reports here. They will be picked up by the creator of 
 Kicad.
 Please visit http://www.kicadlib.org for details of how to contribute your 
 symbols/modules to the kicad library.
 For building Kicad from source and other development questions visit the 
 kicad-devel group at http://groups.yahoo.com/group/kicad-develYahoo! Groups 
 Links








 

 Please read the Kicad FAQ in the group files section before posting your 
 question.
 Please post your bug reports here. They will be picked up by the creator of 
 Kicad.
 Please visit http://www.kicadlib.org for details of how to contribute your 
 symbols/modules to the kicad library.
 For building Kicad from source and other development questions visit