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

Document how to compress (macOS) icons without the recompression issue #10

Open
lwouis opened this issue Aug 30, 2020 · 2 comments
Open

Comments

@lwouis
Copy link

lwouis commented Aug 30, 2020

Hi,

Thanks for sharing these tools! I noticed this line in the readme:

building for macOS may end up with an ICNS or TIFF file, undoing PNG optimisation

It is indeed an issue I faced while developing my app. However, I found a solution: instead of using the built-in iconutil tool from Apple, one can use this third-party createicns tool which does the same thing, except it will not recompress the icons, thus keeping the size savings. You can see in this diff how easy it is to switch from one tool to the other. Note that I'm talking about macOS. I'm not sure how this plays out for iOS.

I struggled a bit to find this tool, and I think it would benefit from more visibility 👍

Thank you

@marcedwards
Copy link
Contributor

Ah, thanks! That’s good to know. Optimage can also be used to compress ICNS files further (run it after creating the ICNS, rather than on the source PNGs).

https://optimage.app

iOS uses PNGs. Xcode can be configured to disable the recompression. I should add that to the help docs. The ImageOptim site has a great page on how to do it though:

https://imageoptim.com/xcode.html

@lwouis
Copy link
Author

lwouis commented Sep 3, 2020

Thanks for sharing Optimage. It seems to do slightly better than ImageOptim. It's paid software though.

The tips for iOS are very interesting. I wish there was similar configuration for macOS.

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

2 participants