Introduction

pgmtokicad is a project that aims to develop and maintain two applications that can be useful for importing custom images in both schematics and printed circuit boards made with KiCAD.

The project consists of two applications:

  • pgmtosym converts an pgm image into a KiCAD symbol
  • pgmtocmp converts an pgm image into a KiCAD component

  • You can download these applications here.

    Usage

    The usage is simple. Most GNU/Linux distributions include the applications pngtoppm and ppmtopgm, which can be used to generate an pgm image from an png image:

    pngtopnm image.png > image.pnm
    ppmtopgm image.pnm > image.pgm

    Most GNU/Linux distributions include the application pnmtoplainpnm, which can be used to convert the pgm image from portable any map to plain (ASCII) anymap format:

    pnmtoplainpnm image.pgm > image.pgm

    Then, pgmtosym can be used to generate a KiCAD library containing a graphic symbol similar to our pgm image:

    pgmtosym image.pgm > image.lib 10

    And pgmtocmp can be used to generate a KiCAD library containing a component whose silkscreen is similar to our pgm image:

    pgmtocmp image.pgm > image.mod 10

    Contact

    Feel free to write questions, comments and suggestions to:
    Erasmo Alonso Iglesias <erasmo1982@users.sourceforge.net>