From 5246f149eb416fe32731404634cf06b44636e126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sun, 27 Sep 2026 09:03:44 +0800 Subject: [PATCH] Doc: updates info about image logo on Windows --- README.md | 48 +++++++++++++++--------------------------------- 1 file changed, 15 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index b3e66cee8..160a1975d 100644 --- a/README.md +++ b/README.md @@ -248,7 +248,20 @@ Set the key to a white space. ### Q: How can I display images on Windows? -As of April 2025: +#### Windows Terminal + +Windows Terminal supports the sixel image protocol only. + +```jsonc +{ + "logo": { + "type": "sixel", // DO NOT USE "auto" + "source": "C:/path/to/image.png", // ~ can be used to refer to the Windows user home directory + "width": , // Optional + "height": // Optional + } +} +``` #### mintty and Wezterm @@ -260,38 +273,7 @@ In `config.jsonc`: "logo": { "type": "iterm", "source": "C:/path/to/image.png", - "width": - } -} -``` - -#### Windows Terminal - -Windows Terminal supports the sixel image protocol only. - -* If you installed fastfetch through MSYS2: - 1. Install imagemagick: `pacman -S mingw-w64--x86_64-imagemagick` - 2. In `config.jsonc`: -```jsonc -{ - "logo": { - "type": "sixel", // DO NOT USE "auto" - "source": "C:/path/to/image.png", // Do NOT use `~` as fastfetch is a native Windows program and doesn't apply cygwin path conversion - "width": , // Optional - "height": // Optional - } -} -``` -* If you installed fastfetch via scoop or downloaded the binary directly from the GitHub Releases page: - 1. Convert your image manually to sixel format using [any online image conversion service](https://www.google.com/search?q=convert+image+to+sixel) - 2. In `config.jsonc`: -```jsonc -{ - "logo": { - "type": "raw", // DO NOT USE "auto" - "source": "C:/path/to/image.sixel", - "width": , // Required - "height": // Required + "width": } } ```