Bitmap Import BPP invalid ,-1

Hey guys,

i want to import a logo with the “bitmap import” tool of Kicad but in the line BPP is every time -1

whats the reason?

*sry for my bad english

Hi Mathrim

As a newcomer, please note that it is always useful to get an appropriate reply to indicate the version of KiCad you’re using. There is a button in the Help / About dialog of every program of the suite that allows you to copy these information, to be pasted as text in your post.

Application: kicad
Version: (5.0.1-3-g963ef8bb5), release build
Libraries:
wxWidgets 3.0.4
libcurl/7.54.0 SecureTransport zlib/1.2.8
Platform: Mac OS X (Darwin 16.7.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
wxWidgets: 3.0.4 (UTF-8,STL containers,compatible with 2.8)
Boost: 1.67.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.54.0
Compiler: Clang 10.0.0 with C++ ABI 1002

Build settings:
USE_WX_GRAPHICS_CONTEXT=ON
USE_WX_OVERLAY=ON
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_ACTION_MENU=ON
BUILD_GITHUB_PLUGIN=ON
KICAD_USE_OCE=ON
KICAD_USE_OCC=OFF
KICAD_SPICE=ON

is this what you mean?

Thanks.

Can you upload your picture file (or make it available somewhere), so the issue can be checked with a more recent release ?

png

Thats the picture (dont wonder about the name^^)

oh think you mean like this

https://www.dropbox.com/s/npmm6lclulxru5x/png.png?dl=0

Works for me with the latest nightly on Win7.

1 Like
Modellname: MacBook Pro
Modell-Identifizierung: MacBookPro11,3
Prozessortyp: Intel Core i7
Prozessorgeschwindigkeit: 2,8 GHz
Anzahl der Prozessoren: 1
Gesamtanzahl der Kerne: 4
L2-Cache (pro Kern): 256 KB
L3-Cache: 6 MB
Speicher: 16 GB
SMC-Version (System): 2.19f12

OS Sierra
v.10.12.6 (16G29)

I tried with my Windows pc (Win7 64bit)

And This Kicad version
Application: kicad
Version: (5.0.2)-1, release build
Libraries:
wxWidgets 3.0.4
libcurl/7.61.1 OpenSSL/1.1.1 (WinSSL) zlib/1.2.11 brotli/1.0.6 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) nghttp2/1.34.0
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.68.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.61.1
Compiler: GCC 8.2.0 with C++ ABI 1013

Build settings:
USE_WX_GRAPHICS_CONTEXT=OFF
USE_WX_OVERLAY=OFF
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_ACTION_MENU=ON
BUILD_GITHUB_PLUGIN=ON
KICAD_USE_OCE=ON
KICAD_USE_OCC=OFF
KICAD_SPICE=ON

and its the same isue

there is the Folder with the new .png and the generated .KiCAD_mod files.

can anyone with cicad v.5 import the Modfile to tell me if it works

The footprint is empty.
Open it with a text editor and see that there is no information about any line of the logo.

I’m sorry I can’t create the footprint either.

If you have your picture as a vector graphic then you can try and use svg2shenzen.
More details see: Using Inkscape plus Svg2Shenzen to create complex footprints

Found the reason for the problem!

Kicad says black lines are transparent and Transparent spaces are also transparent.

So my .png was convertet from black on transparent to transparent on transparent and thats the reason for the empty modfile.

So your .png dont have to be like this

FaderMitButton

it have to be like this
FaderMitButton
(but with transparent background)

Kicad only accept white lines for the PCB

This might be because you have “negative” selected in the bitmap converter.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.