From 283158fddd682f60ba8d77f63cc42a6aa10e1ca2 Mon Sep 17 00:00:00 2001 From: Erick Zhao Date: Thu, 13 Feb 2025 07:06:40 +0000 Subject: [PATCH] GITBOOK-204: Add note about exporting ICO files --- guides/create-and-add-icons.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/guides/create-and-add-icons.md b/guides/create-and-add-icons.md index e182932..9d40887 100644 --- a/guides/create-and-add-icons.md +++ b/guides/create-and-add-icons.md @@ -16,7 +16,7 @@ On platforms that have high-DPI support (such as Apple Retina displays), you can If you want to support different displays with different DPI densities at the same time, you can put images with different sizes in the same folder and use the filename without DPI suffixes. For example: -```text +``` images/ ├── icon.png ├── icon@2x.png @@ -39,6 +39,10 @@ The recommended file formats and icon sizes for each platform are as follows: | Windows | `.ico` | 256x256 pixels | | Linux | `.png` | 512x512 pixels | +{% hint style="warning" %} +On Windows, ensure that your `.ico` file is exported from an image editor that supports the format (such as [GIMP](https://www.gimp.org/)). Renaming a `.png` file into `.ico` will result in a `Fatal error: Unable to set icon` error. +{% endhint %} + ## Setting the app icon ### Windows and macOS