Import png image to Eagle
In some Eagle projects a logo for the board is needed. In this example I am using the Python logo in the .png format.
The first step is to convert the .png file to a bitmap file. Therefore I am using GIMP.
Open GIMP and go to Image – Mode – Indexed. Now change the value “Maximum number of colors” to the number of colors you like to have.
Since there are three colors (white background, blue, yellow), the value in this example is 3. Click convert to apply this setting.
Now export this image to a bitmap file with File – Export As.
Open your Eagle board and select in File – Run ULP the “import-bmp.ulp” ULP. Open the created bitmap file, select “Scan used colors” and choose the colors you’d like to have on the board. Since I don’t want the white background, I only choose two colors.
With the scale value you can scale the image on the board. Change the start layer value to 25 (tNames layer) and click on OK – Run script.
Now your logo is added. The first color is on the tNames layer (25), and by default the second layer is on the bNames layer (26). You easily can change the layer to any other, e.g. to the tRestrict layer (41).