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

Move Icon Creation to GenerateIssuerIconAssets.sh #60

Closed
wants to merge 17 commits into from
Closed

Move Icon Creation to GenerateIssuerIconAssets.sh #60

wants to merge 17 commits into from

Conversation

FIGBERT
Copy link
Contributor

@FIGBERT FIGBERT commented Jan 21, 2021

After our discussion on #52, I spent some time implementing the automated icon generation we discussed. The bash script uses sips – which ships with macOS – and ag – an ack alternative that you can install with Homebrew – to generate the icon files.

The one missing feature that we discussed is removing the hard-coded rounded corners, but that can be implemented in another pull request.

@calleluks
Copy link
Collaborator

Wow, that's super cool! Thanks so much for working on this! I'll read through the script and post feedback inline.

@calleluks
Copy link
Collaborator

I have a branch locally with quite a few icons without rounded corners and code to round them at runtime. Will post a PR with it as soon as I've had time to clean it up somewhat!

The inital cp has been replace by sips --resampleWidth 192,
and the subsequent usages of sips now all use the source
file as their base.
GenerateIssuerIconAssets.sh Outdated Show resolved Hide resolved
GenerateIssuerIconAssets.sh Outdated Show resolved Hide resolved
GenerateIssuerIconAssets.sh Outdated Show resolved Hide resolved
@FIGBERT
Copy link
Contributor Author

FIGBERT commented Jan 21, 2021

Alright, all suggestions implemented. Thanks to @ThinkChaos for the RegEx and directory pointers. Probably should squash before merging.

@calleluks
Copy link
Collaborator

Merged as d6b4544 and 174fcf5 with some small modifications:

  • I removed the comment about the regex since it was describing the old one.
  • I removed some empty lines
  • I brought back the unoptimized versions of all icons and re-ran the script. Xcode automatically runs all pngs through pngcrush as part of the build. Not optimizing the icons output by the script avoids having to re-optimize them everytime the script is run to avoid binary diffs.

Thanks so much @FIGBERT and @ThinkChaos!

@calleluks calleluks closed this Jan 27, 2021
@FIGBERT FIGBERT deleted the icon-organization branch January 27, 2021 23:07
@FIGBERT FIGBERT mentioned this pull request Apr 8, 2021
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

Successfully merging this pull request may close these issues.

None yet

3 participants