The wrong way to use Bitmap2Component
There are many, many blogposts and videos about how to convert a bitmap image into a KiCad module for putting on a PCB.
None of them worked for me. I eventually got it working with a slightly altered workflow.
The first step is the same, using Bitmap2Component to create a KiCad module from a bitmap:
Then I added the file itself as a library in PCBnew Preferences->Library Tables:
But when I tried to add this module onto the PCB, I got an error:
Since KiCad changed its library format some time in the past, I thought maybe that Bitmap2Component still produced legacy libraries.
So I changed the Plugin Type from KiCad to Legacy in Preferences->Library Tables.
I got a different error:
After much swearing, I finally figured out what I was doing wrong.
What I was doing wrong (and how to do it right)
Bitmap2Component DOES produce the current (not legacy) module files.
But Library Tables expects the path of the folder they’re in, not the path to the module itself. This is why KiCad has the .pretty folders. They’re full of .kicad_mod files.
So I moved the module file I created to a Graphics.pretty folder inside my project:
And then I changed the Library tables path to point at that folder (with the KiCad plugin type). After that, success!
Apart from image scaling, but that’s a ranty blog post for another day.