From 4b066e66da9307337e0e7df574fb96293086a1ad Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Tue, 20 Apr 2021 23:58:52 +1000 Subject: [PATCH] Added info about mode when saving for Windows [ci skip] --- src/PIL/IcoImagePlugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PIL/IcoImagePlugin.py b/src/PIL/IcoImagePlugin.py index 5634bf8e9..ff92390fb 100644 --- a/src/PIL/IcoImagePlugin.py +++ b/src/PIL/IcoImagePlugin.py @@ -267,7 +267,8 @@ class IcoImageFile(ImageFile.ImageFile): Handles classic, XP and Vista icon formats. When saving, PNG compression is used. Support for this was only added in - Windows Vista. + Windows Vista. If you are unable to view the icon in Windows, convert the + image to "RGBA" mode before saving. This plugin is a refactored version of Win32IconImagePlugin by Bryan Davis .