Skip to content

[BUG] Text appears behind some PNG images. #1145

Closed
@NotMeYwO

Description

@NotMeYwO

Be sure to read the FAQ before submitting a new issue.

General description of bug:

  • What happened: fastfetch prints what appears to be random text behind some (but not all) PNG images. I haven't been able to find a pattern.
  • What should happen: The PNG image should print and no text should appear behind it.
  • Fastfetch version used: fastfetch 2.20.0 (x86_64)
  • Did it work in an older version: It works perfectly fine in 2.19.1, I can try other versions if needed.
  • Where did you get the binary: I installed fastfetch using pacman, but also tried using the tar.gz amd64 available in the 2.20.0 release.
  • Does this issue still occur in CI#1486?: Doesn't appear to, fastfetch worked fine in the latest dev build (at the time of writing this issue).

Often helpful information:

Screenshot:
fastfetch-1
fastfetch-2

The content of the configuration file you use (if any):

{
  "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
  "logo": {
    "type": "kitty-direct",
    "source": "/home/<username>/Downloads/1.png",
    "width": 49,
    "height": 27,
    "padding": {
      "top": 1,
      "left": 2,
      "right": 2
    }

  },
  "modules": [
    "break",
    "break",
    "title",
    "separator",
    "os",
    "shell",
    "packages",
    "break",
    "wm",
    "terminal",
    "terminalfont",
    "break",
    "cpu",
    "gpu",
    "break",
    "memory",
    "swap",
    "disk"
  ]
}

Output of fastfetch -c ci.jsonc --format json:

[
  {
    "type": "Title",
    "result": {
      "userName": "meywo",
      "hostName": "nyarch-uwu",
      "homeDir": "/home/meywo/",
      "exePath": "/usr/bin/fastfetch",
      "userShell": "/usr/bin/zsh"
    },
    "stat": 0
  },
  {
    "type": "Separator",
    "error": "Unsupported for JSON format",
    "stat": 0
  },
  {
    "type": "OS",
    "result": {
      "buildID": "rolling",
      "codename": "",
      "id": "arch",
      "idLike": "",
      "name": "Arch Linux",
      "prettyName": "Arch Linux",
      "variant": "",
      "variantID": "",
      "version": "",
      "versionID": ""
    },
    "stat": 0
  },
  {
    "type": "Host",
    "error": "neither product_family nor product_name is set by O.E.M.",
    "stat": 1
  },
  {
    "type": "Bios",
    "result": {
      "date": "08/28/2015",
      "release": "5.11",
      "vendor": "American Megatrends Inc.",
      "version": "0406",
      "type": "UEFI"
    },
    "stat": 0
  },
  {
    "type": "Bootmgr",
    "result": {
      "name": "UEFI OS",
      "firmware": "\\EFI\\BOOT\\BOOTX64.EFI",
      "secureBoot": false
    },
    "stat": 0
  },
  {
    "type": "Board",
    "result": {
      "name": "B150M-A D3",
      "vendor": "ASUSTeK COMPUTER INC.",
      "version": "Rev X.0x",
      "serial": ""
    },
    "stat": 0
  },
  {
    "type": "Chassis",
    "result": {
      "type": "Desktop",
      "vendor": "",
      "version": "",
      "serial": ""
    },
    "stat": 0
  },
  {
    "type": "Kernel",
    "result": {
      "architecture": "x86_64",
      "name": "Linux",
      "release": "6.10.2-arch1-1",
      "version": "#1 SMP PREEMPT_DYNAMIC Sat, 27 Jul 2024 16:49:55 +0000",
      "displayVersion": "",
      "pageSize": 4096
    },
    "stat": 0
  },
  {
    "type": "InitSystem",
    "result": {
      "name": "systemd",
      "exe": "/usr/lib/systemd/systemd",
      "version": "256.4-1-arch",
      "pid": 1
    },
    "stat": 5
  },
  {
    "type": "Uptime",
    "result": {
      "uptime": 2429080,
      "bootTime": "2024-08-03T16:51:14.199+0200"
    },
    "stat": 0
  },
  {
    "type": "Loadavg",
    "result": [
      0.3115234375,
      0.5380859375,
      0.5185546875
    ],
    "stat": 0
  },
  {
    "type": "Processes",
    "result": 207,
    "stat": 1
  },
  {
    "type": "Packages",
    "result": {
      "all": 691,
      "apk": 0,
      "brew": 0,
      "brewCask": 0,
      "choco": 0,
      "dpkg": 0,
      "emerge": 0,
      "eopkg": 0,
      "flatpakSystem": 0,
      "flatpakUser": 0,
      "nixDefault": 0,
      "nixSystem": 0,
      "nixUser": 0,
      "pacman": 691,
      "paludis": 0,
      "pkg": 0,
      "pkgtool": 0,
      "macports": 0,
      "rpm": 0,
      "scoop": 0,
      "snap": 0,
      "winget": 0,
      "xbps": 0,
      "opkg": 0,
      "am": 0,
      "sorcery": 0,
      "guixSystem": 0,
      "guixUser": 0,
      "guixHome": 0,
      "pacmanBranch": ""
    },
    "stat": 0
  },
  {
    "type": "Shell",
    "result": {
      "exe": "/usr/bin/zsh",
      "exeName": "zsh",
      "exePath": "/usr/bin/zsh",
      "pid": 4796,
      "ppid": 4786,
      "processName": "zsh",
      "prettyName": "zsh",
      "version": "5.9",
      "tty": 0
    },
    "stat": 1
  },
  {
    "type": "Editor",
    "error": "$VISUAL or $EDITOR not set",
    "stat": 0
  },
  {
    "type": "Display",
    "result": [
      {
        "id": 13842066174465604,
        "name": "VSCDC2E",
        "primary": false,
        "output": {
          "width": 1920,
          "height": 1080
        },
        "scaled": {
          "width": 1920,
          "height": 1080
        },
        "physical": {
          "width": 480,
          "height": 270
        },
        "refreshRate": 60.0,
        "rotation": 0,
        "bitDepth": 0,
        "hdrEnabled": false,
        "wcgEnabled": false,
        "type": "External"
      }
    ],
    "stat": 6
  },
  {
    "type": "Brightness",
    "result": [],
    "stat": 0
  },
  {
    "type": "Monitor",
    "result": [
      {
        "hdrCompatible": false,
        "name": "DVI-I-1",
        "resolution": {
          "width": 1920,
          "height": 1080
        },
        "physical": {
          "height": 270,
          "width": 480
        },
        "refreshRate": 59.962843833185445,
        "manufactureDate": null,
        "serial": null
      }
    ],
    "stat": 2
  },
  {
    "type": "LM",
    "result": {
      "service": "ly",
      "type": "Wayland",
      "version": ""
    },
    "stat": 0
  },
  {
    "type": "DE",
    "error": "No DE found",
    "stat": 0
  },
  {
    "type": "WM",
    "result": {
      "processName": "Hyprland",
      "prettyName": "Hyprland",
      "protocolName": "Wayland",
      "pluginName": ""
    },
    "stat": 0
  },
  {
    "type": "WMTheme",
    "error": "Unknown WM: Hyprland",
    "stat": 0
  },
  {
    "type": "Theme",
    "error": "No themes found",
    "stat": 1
  },
  {
    "type": "Icons",
    "error": "No icons could be found",
    "stat": 0
  },
  {
    "type": "Font",
    "error": "No fonts found",
    "stat": 0
  },
  {
    "type": "Cursor",
    "result": {
      "theme": "Adwaita",
      "size": ""
    },
    "stat": 0
  },
  {
    "type": "Wallpaper",
    "error": "Failed to detect the current wallpaper path",
    "stat": 0
  },
  {
    "type": "Terminal",
    "result": {
      "processName": "kitty",
      "exe": "kitty",
      "exeName": "kitty",
      "exePath": "/usr/bin/kitty",
      "pid": 4786,
      "ppid": 1,
      "prettyName": "kitty",
      "version": "0.35.2",
      "tty": "/dev/pts/0"
    },
    "stat": 3
  },
  {
    "type": "TerminalFont",
    "result": {
      "font": {
        "name": "HasklugNF",
        "size": "10",
        "styles": [],
        "pretty": "HasklugNF (10pt)"
      },
      "fallback": {
        "name": "",
        "size": "",
        "styles": [],
        "pretty": ""
      }
    },
    "stat": 7
  },
  {
    "type": "TerminalSize",
    "result": {
      "columns": 237,
      "rows": 60,
      "width": 1896,
      "height": 1020
    },
    "stat": 0
  },
  {
    "type": "TerminalTheme",
    "result": {
      "fg": {
        "r": 202,
        "g": 211,
        "b": 245,
        "dark": false
      },
      "bg": {
        "r": 36,
        "g": 39,
        "b": 58,
        "dark": true
      }
    },
    "stat": 6
  },
  {
    "type": "CPU",
    "result": {
      "cpu": "Intel(R) Core(TM) i5-6400",
      "vendor": "GenuineIntel",
      "cores": {
        "physical": 4,
        "logical": 4,
        "online": 4
      },
      "frequency": {
        "base": 2700,
        "max": 3300,
        "biosLimit": 0
      },
      "coreTypes": [
        {
          "count": 4,
          "freq": 2700
        }
      ],
      "temperature": 38.0
    },
    "stat": 2
  },
  {
    "type": "CPUCache",
    "result": {
      "l1": [
        {
          "size": 32768,
          "num": 4,
          "lineSize": 64,
          "type": "data"
        },
        {
          "size": 32768,
          "num": 4,
          "lineSize": 64,
          "type": "instruction"
        }
      ],
      "l2": [
        {
          "size": 262144,
          "num": 4,
          "lineSize": 64,
          "type": "unified"
        }
      ],
      "l3": [
        {
          "size": 6291456,
          "num": 1,
          "lineSize": 64,
          "type": "unified"
        }
      ]
    },
    "stat": 3
  },
  {
    "type": "CPUUsage",
    "result": [
      0.0,
      5.0,
      5.0,
      9.523809523809524
    ],
    "stat": 200
  },
  {
    "type": "GPU",
    "result": [
      {
        "coreCount": 1024,
        "memory": {
          "dedicated": {
            "total": 4218552320,
            "used": 436142080
          },
          "shared": {
            "total": null,
            "used": null
          }
        },
        "driver": "nvidia 555.58.02",
        "name": "GeForce GTX 960",
        "temperature": 51.0,
        "type": "Discrete",
        "vendor": "NVIDIA",
        "platformApi": "DRM (card0)",
        "frequency": 1430.0,
        "deviceId": 20500
      }
    ],
    "stat": 42
  },
  {
    "type": "Memory",
    "result": {
      "total": 16683372544,
      "used": 2421018624
    },
    "stat": 0
  },
  {
    "type": "PhysicalMemory",
    "error": "Failed to get SMBIOS data",
    "stat": 0
  },
  {
    "type": "Swap",
    "result": {
      "total": 4294963200,
      "used": 0
    },
    "stat": 0
  },
  {
    "type": "Disk",
    "result": [
      {
        "bytes": {
          "available": 663978508288,
          "free": 665637896192,
          "total": 676977442816,
          "used": 11339546624
        },
        "files": {
          "total": null,
          "used": null
        },
        "filesystem": "btrfs",
        "mountpoint": "/",
        "mountFrom": "/dev/mapper/root",
        "name": "",
        "volumeType": [
          "Regular"
        ],
        "createTime": "2024-08-01T14:58:27.593+0200"
      },
      {
        "bytes": {
          "available": 770002944,
          "free": 770002944,
          "total": 1071624192,
          "used": 301621248
        },
        "files": {
          "total": null,
          "used": null
        },
        "filesystem": "vfat",
        "mountpoint": "/boot",
        "mountFrom": "/dev/sdb1",
        "name": "",
        "volumeType": [
          "Hidden"
        ],
        "createTime": null
      },
      {
        "bytes": {
          "available": 663978508288,
          "free": 665637896192,
          "total": 676977442816,
          "used": 11339546624
        },
        "files": {
          "total": null,
          "used": null
        },
        "filesystem": "btrfs",
        "mountpoint": "/home",
        "mountFrom": "/dev/mapper/root",
        "name": "",
        "volumeType": [
          "Subvolume"
        ],
        "createTime": "2024-08-01T14:58:27.597+0200"
      }
    ],
    "stat": 1
  },
  {
    "type": "Battery",
    "result": [],
    "stat": 0
  },
  {
    "type": "PowerAdapter",
    "result": [],
    "stat": 0
  },
  {
    "type": "Player",
    "error": "No media found",
    "stat": 4
  },
  {
    "type": "Media",
    "error": "No media found",
    "stat": 0
  },
  {
    "type": "PublicIp",
    "result": {
      "ip": "--------",
      "location": "somewhere lol"
    },
    "stat": 0
  },
  {
    "type": "LocalIp",
    "result": [
      {
        "defaultRoute": true,
        "ipv4": "--------",
        "ipv6": "--------",
        "mac": "--------",
        "name": "--------",
        "mtu": --------
      }
    ],
    "stat": 0
  },
  {
    "type": "DNS",
    "result": [
      "192.168.1.254",
      "fd0f:ee:b0::1"
    ],
    "stat": 0
  },
  {
    "type": "Wifi",
    "result": [],
    "stat": 36
  },
  {
    "type": "DateTime",
    "result": "2024-08-03T16:10:45.434+0200",
    "stat": 0
  },
  {
    "type": "Locale",
    "result": "en_US.UTF-8",
    "stat": 0
  },
  {
    "type": "Vulkan",
    "result": {
      "apiVersion": "1.3.278",
      "conformanceVersion": "1.3",
      "driver": "NVIDIA [555.58.02]",
      "gpus": [
        {
          "type": "Discrete",
          "vendor": "NVIDIA",
          "name": "NVIDIA GeForce GTX 960",
          "driver": "555.58.02",
          "platformApi": "Vulkan 1.3.278",
          "deviceId": 5121,
          "memory": {
            "dedicated": {
              "total": 4552916992,
              "used": null
            },
            "shared": {
              "total": 12512529408,
              "used": null
            }
          },
          "deviceId": 5121
        }
      ]
    },
    "stat": 40
  },
  {
    "type": "OpenGL",
    "result": {
      "version": "4.6 (Compatibility Profile) Mesa 24.1.5-arch1.1",
      "renderer": "zink Vulkan 1.3(NVIDIA GeForce GTX 960 (NVIDIA_PROPRIETARY))",
      "vendor": "Mesa",
      "slv": "4.60",
      "library": "EGL 1.5"
    },
    "stat": 720
  },
  {
    "type": "OpenCL",
    "error": "clGetPlatformIDs() failed",
    "stat": 0
  },
  {
    "type": "Users",
    "result": [
      {
        "name": "meywo",
        "hostName": "",
        "sessionName": "tty2",
        "clientIp": "0.0.0.0",
        "loginTime": "2024-08-03T15:31:16.322+0200"
      }
    ],
    "stat": 0
  },
  {
    "type": "Bluetooth",
    "error": "Failed to call GetManagedObjects",
    "stat": 1
  },
  {
    "type": "Sound",
    "result": [
      {
        "active": true,
        "main": false,
        "volume": 39,
        "name": "Built-in Audio Analog Stereo",
        "identifier": "alsa_output.pci-0000_00_1f.3.analog-stereo"
      },
      {
        "active": true,
        "main": true,
        "volume": 39,
        "name": "Realtek USB2.0 Audio Analog Stereo",
        "identifier": "alsa_output.usb-Generic_Realtek_USB2.0_Audio-00.analog-stereo"
      }
    ],
    "stat": 5
  },
  {
    "type": "Camera",
    "result": [],
    "stat": 0
  },
  {
    "type": "Gamepad",
    "result": [],
    "stat": 0
  },
  {
    "type": "Weather",
    "result": "+34°C - Sunny (Rochefort-du-Gard, France)",
    "stat": 1
  },
  {
    "type": "NetIO",
    "result": [
      {
        "name": "enp4s0",
        "defaultRoute": true,
        "txBytes": 1058,
        "rxBytes": 1964,
        "txPackets": 14,
        "rxPackets": 14,
        "rxErrors": 0,
        "txErrors": 0,
        "rxDrops": 2,
        "txDrops": 0
      }
    ],
    "stat": 0
  },
  {
    "type": "DiskIO",
    "result": [
      {
        "name": "ATA Samsung SSD 860",
        "devPath": "/dev/sdb",
        "bytesRead": 103542784,
        "bytesWritten": 0,
        "readCount": 175,
        "writeCount": 0
      },
      {
        "name": "ASUS DRW-24F1MT",
        "devPath": "/dev/sr0",
        "bytesRead": 0,
        "bytesWritten": 0,
        "readCount": 0,
        "writeCount": 0
      },
      {
        "name": "ATA ST1000DX001-1NS1",
        "devPath": "/dev/sda",
        "bytesRead": 0,
        "bytesWritten": 0,
        "readCount": 0,
        "writeCount": 0
      }
    ],
    "stat": 0
  },
  {
    "type": "PhysicalDisk",
    "result": [
      {
        "name": "ATA Samsung SSD 860",
        "devPath": "/dev/sdb",
        "interconnect": "ATA",
        "kind": "SSD",
        "size": 1000204886016,
        "serial": "",
        "removable": false,
        "readOnly": false,
        "revision": "2B6Q",
        "temperature": null
      },
      {
        "name": "ASUS DRW-24F1MT",
        "devPath": "/dev/sr0",
        "interconnect": "ATA",
        "kind": "HDD",
        "size": 1073741312,
        "serial": "",
        "removable": true,
        "readOnly": false,
        "revision": "1.00",
        "temperature": null
      },
      {
        "name": "ATA ST1000DX001-1NS1",
        "devPath": "/dev/sda",
        "interconnect": "ATA",
        "kind": "HDD",
        "size": 1000204886016,
        "serial": "",
        "removable": false,
        "readOnly": false,
        "revision": "CC41",
        "temperature": null
      }
    ],
    "stat": 1
  },
  {
    "type": "Version",
    "result": {
      "projectName": "fastfetch",
      "sysName": "Linux",
      "architecture": "x86_64",
      "version": "2.20.0",
      "versionTweak": "",
      "cmakeBuiltType": "RelWithDebInfo",
      "compileTime": "Jul 26 2024, 06:50:11",
      "compiler": "gcc 14.1.1",
      "debugMode": false,
      "libc": "glibc 2.40"
    },
    "stat": 0
  },
  {
    "type": "Break",
    "error": "Unsupported for JSON format",
    "stat": 0
  },
  {
    "type": "Colors",
    "error": "Unsupported for JSON format",
    "stat": 0
  }
]

Output of fastfetch --list-features:

threads
vulkan
wayland
xcb-randr
xcb
xrandr
x11
drm
gio
dconf
dbus
imagemagick7
chafa
zlib
xfconf
egl
glx
osmesa
opencl
libpulse
libnm
libddcutil
Directx Headers
System yyjson
linux/videodev2
linux/wireless

If an image or logo didn't show

  • The image protocol you used: kitty-direct
  • The terminal you used: kitty
  • Upload the image file here, or paste the image URL:
    1
    2
  • Does it work with --logo-width {WIDTH} --logo-height {HEIGHT}?: No, it doesn't. I used w=49, h=27. (i know those parameters don't keep the aspect ratios of the images shown, but they do for the image i usually use, which is nsfw)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions