jackmordaunt / icns Goto Github PK
View Code? Open in Web Editor NEWEasily create .icns files (Mac Icons) with this Go library or the included CLI.
License: MIT License
Easily create .icns files (Mac Icons) with this Go library or the included CLI.
License: MIT License
I was trying to use this tool on linux to convert a png to icns file. It seemed to work and produced some file, but I was unable to actually open that file with anything.
Even image magick gives up on this with the folliwing output:
$ magick convert source-file.icns converted-file.png
convert: no decode delegate for this image format `ICNS' @ error/constitute.c/ReadImage/562.
convert: no images defined `converted-file.png' @ error/convert.c/ConvertImageCommand/3282.
ImageMagick
creates a valid icns file from the same source png.
Any chance to have this also released on homebrew?
Hi. Thanks for creating this library. It is very useful for the packaging that we do in https://github.com/fyne-io/fyne.
The recent versions seem to have a ui and depend on gioui for it. This unfortunately means that anyone importing this will get gioui and its dependencies added to their go.sum as well. Given that we are a user interface too, this is something that we would like to avoid. Is moving the ui something that you could consider?
Hey @JackMordaunt
Not sure as I did not dig into this, but v2.2.7 tag works for one cmd but not the other...
# works...
go install github.com/jackmordaunt/icns/v2/cmd/[email protected]
# works...
go install github.com/jackmordaunt/icns/cmd/preview@latest
# fails...
go install github.com/jackmordaunt/icns/cmd/[email protected]
go: github.com/jackmordaunt/icns/cmd/[email protected]: github.com/jackmordaunt/icns/cmd/[email protected]: reading https://proxy.golang.org/github.com/jackmordaunt/icns/cmd/preview/@v/v2.2.7.info: 404 Not Found
server response: not found: github.com/jackmordaunt/icns/cmd/[email protected]: invalid version: unknown revision cmd/preview/v2.2.7
hey @JackMordaunt
i guess this golang toll will replace the one using in gogio at:
https://github.com/gioui/gio-cmd/blob/0a86898b418418e80fba9c12e71dfdf764bb01d6/gogio/macosbuild.go#LL94C23-L94C31
Hi
There is also a problem decoding the TripMode icon: decoding largest image: image: unknown format
Again, opening in Preview
is no problem, showing all icon versions as expected.
Hi, this is a great project, and I plan to add this to Winget. However, Winget only supports installing from zip archives at the moment. Can you also please release alternative zip binaries in the releases? Thanks!
Hey @andydotxyz
am working on it here: https://github.com/gedw99/gio-sign/
gogio and icns looks like it can work together. will make building cross platform.
The intent is that in CI, we can do a gio build and sign cross any platform to build any platform is the intent.
the rust signer can do this apparently. the signing from anywhere i mean.
first thing though is to get icns working with gogio and then get upstream.
we can integration the preview tool too after that if you want.
Any thoughts on if we can gen a ico file too ?
Windows uses ico files apparently for packaging.
currently this tool work great for apple and icns. Thanks @JackMordaunt
Fyne uses it btw
just a matter of adjusting gogio
Note:
I looked at Fyne packaging but itβs too coupled to Fyne.
$ brew tap jackmordaunt/homebrew-icnsify
==> Tapping jackmordaunt/icnsify
Cloning into '/opt/homebrew/Library/Taps/jackmordaunt/homebrew-icnsify'...
remote: Repository not found.
fatal: repository 'https://github.com/jackmordaunt/homebrew-icnsify/' not found
Error: Failure while executing; `git clone https://github.com/jackmordaunt/homebrew-icnsify /opt/homebrew/Library/Taps/jackmordaunt/homebrew-icnsify --origin=origin --template= --config core.fsmonitor=false` exited with 128.
Hi
I want to decode the icons of a few apps. Several work well, but some do not. Like the icon of Dropbox which is stored at /Applications/Dropbox.app/Contents/Resources/AppIcon.icns
. The files exists and opens in Preview
without problems, showing the Dropbox icon in several sizes. However, this library reports the error no icons found
?
Hello,
I have a folder ( icon.iconset ) with multiple resized images for different resolution and I want to produce the .icns file.
[email protected]
icon_128x128.png
[email protected]
icon_16x16.png
[email protected]
icon_256x256.png
[email protected]
icon_32x32.png
[email protected]
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.