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 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,
> Robert<birmingham_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, "James"<jamesrsweet@>    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 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/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<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
>
>
>     (Yahoo! ID required)
>
>     kicad-users-<mailto:kicad-users-fullfeatu...@yahoogroups.com>
> fullfeatu...@yahoogroups.com
>
>
>
>
>
> 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
>
>
>
>
>
>
>
>
>
>
>
>
> No virus found in this incoming 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
>
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

Reply via email to