Skip to main content

Module library_icon

Module library_icon 

Source
Expand description

The library’s own icon, icon.png in the library root. Eagle shows it next to the library name in the library switcher.

Constants§

ICON_FILE
The icon’s file name inside the library folder.

Functions§

icon_path
The icon file, when the library has one.
remove_icon
Deletes the icon; nothing happens when there is none.
set_icon
Makes source (jpg, jpeg, png, webp or gif, first frame) the library’s icon: scaled uniformly so the shorter side is 64 px, saved as PNG. The file is written next to icon.png and renamed over it, so a failure leaves the old icon alone.