icns

Easily create .icns files (Mac Icons) with this Go library or the included CLI.
Log | Files | Refs | LICENSE

commit 1f2e4ec165e316c05a99448405a4fe01d24af7aa
parent 4f16af745526e95b661c14f351d630f54bf55f0f
Author: Andy Williams <andy@andy.xyz>
Date:   Sat, 11 Apr 2020 12:08:38 +0100

Add supported icon types

This parses valid PNG data for a wider range of icons. Test with Google Chrome, Apple Numbers and more.
Typically apple's built-in apps were often not rendered correctly before. Now most seem to work :)
Diffstat:
Micns.go | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/icns.go b/icns.go @@ -147,10 +147,14 @@ type OsType struct { var osTypes = []OsType{ {ID: "ic10", Size: uint(1024)}, {ID: "ic14", Size: uint(512)}, + {ID: "ic09", Size: uint(512)}, {ID: "ic13", Size: uint(256)}, + {ID: "ic08", Size: uint(256)}, {ID: "ic07", Size: uint(128)}, + {ID: "it32", Size: uint(128)}, {ID: "ic12", Size: uint(64)}, {ID: "ic11", Size: uint(32)}, + {ID: "il32", Size: uint(32)}, } // getTypeFromSize returns the type for the given icon size (in px).