fastfetch-cli / fastfetch

A maintained, feature-rich and performance oriented, neofetch like system information tool.
MIT License
10.6k stars 408 forks source link

[FEAT] Add support for Foot terminal PNG image render #769

Closed SherLock707 closed 7 months ago

SherLock707 commented 7 months ago

Current state:

"logo": {
    "type": "auto",
    "source": "/home/user/joi.png",
    "width": 40,
    "height": 13,
    "padding": {
        "top": 3,
        "left": 2,
        "right": 2
    }

image

if "type": "sixel", It renders black background for PNGs image

Wanted state:

This is kitty with auto type: image

Hoping for support on Foot terminal.

Why the change is sensible:

Right now no good way of rendering PNG on Foot terminal via Fastfetch. Hoping to pair fastest fetch cli with fastest terminal emulator.

Thank you

CarterLi commented 7 months ago

sixel and kitty are graphic protocols which must be supported by terminals themselves. foot supports only sixel.

See this commit for rendering transparent backgrounds.