Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate icon set from single source svg/png #38

Open
mahnunchik opened this issue May 28, 2020 · 3 comments
Open

Generate icon set from single source svg/png #38

mahnunchik opened this issue May 28, 2020 · 3 comments

Comments

@mahnunchik
Copy link

It would be awesome to have mac/icns behaviour extended to another targets.

User may provide single source image:

  • .svg - recommended format.
  • .png - minimum as 256x256 px (up to 1024x1024 px).

app-builder generates:

  • .icns icon container for macOS - current implementation
  • .ico for Windows (from original .svg/.png, not from .icns)
  • size.png - set of icons for Linux packages.
  • name-scale.png - set of icons for AppX.

Related issue:

@mahnunchik
Copy link
Author

Actually app-builder generates .ico container from .png image but with single size inside.

Recommended sizes inside ico should be from 16x16 to 256x256 pixels https://docs.microsoft.com/en-us/windows/win32/uxguide/vis-icons

@mahnunchik
Copy link
Author

One more detail: app-builder can generate icons for linux from . icns but not from .svg and .png images.

.png -> . icns works as expected.

@mahnunchik
Copy link
Author

Just for the information, to generate .ico with all required sizes from single .png you may use:

magick convert resources/icon.png \
  -resize 256x256 \
  -define icon:auto-resize="256,128,96,64,48,40,32,24,16" \
  resources/icon.ico

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant