trim_logos
Documentation for eth_defi.vault_report.charts.trim_logos function.
- trim_logos(logo_uris, size=96)
Remove the transparent margins around logos.
Logo files come with different amounts of empty space around the mark, so icons drawn in same-sized boxes look unevenly spaced from their text. The logos are rasterised, cropped to their visible pixels and re-encoded as PNG, and their aspect ratio sizes each icon box to the mark itself.