Skip to content

Commit 283158f

Browse files
erickzhaogitbook-bot
authored andcommitted
GITBOOK-204: Add note about exporting ICO files
1 parent a1935f5 commit 283158f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

guides/create-and-add-icons.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ On platforms that have high-DPI support (such as Apple Retina displays), you can
1616

1717
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:
1818

19-
```text
19+
```
2020
images/
2121
├── icon.png
2222
@@ -39,6 +39,10 @@ The recommended file formats and icon sizes for each platform are as follows:
3939
| Windows | `.ico` | 256x256 pixels |
4040
| Linux | `.png` | 512x512 pixels |
4141

42+
{% hint style="warning" %}
43+
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.
44+
{% endhint %}
45+
4246
## Setting the app icon
4347

4448
### Windows and macOS

0 commit comments

Comments
 (0)