question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IconGenie: generated ic_launcher images are cropped/zoomed too much when rounded

See original GitHub issue

When I generate assets for capacitor, the ic_launcher files for android look zoomed in or cropped. Is this a configuration thing or how do I prevent this behaviour?

My command is: icongenie g -m capacitor -i ./app-icon.png --quality 12 --skip-trim

ic_launcher and ic_launcher_round are wrong, the app icon should always be like ic_launcher_foreground:

Screenshot 2020-08-05 at 12 42 18

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
rstoenescucommented, Aug 5, 2020

Hi, you need to apply a padding (check IconGenie part of the docs).

1reaction
cabassicommented, Aug 10, 2020

@cabassi Like you said, Quasar and IconGenie are pretty nice but documentation for IconGenie is missing with some examples; maybe we need to adjust a padding in Android Studio itself?

I resolved doing it the old way directly in Android Studio.

Also if you try to use 2 profile for the icon generation in params.include you can’t write capacitor.ios / capacitor.android in order to discriminate the destination of your fresh generated icons, making it impossible to use another source for the Android icons with larger padding to avoid the cropped image.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Icon Genie CLI Command List - Quasar Framework
Generate. The generate command is used for generating app icons and splash screens. It's at the heart of Icon Genie as it does...
Read more >
How to generate rounded square launcher icon android
Right click on app > Go to Image Assets > Choose icon type and other ... You can use below links to generate...
Read more >
Adaptive icons - Android Developers
Different shapes: An adaptive icon can display a variety of shapes across different device models. For example, it can display a circular shape ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found