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.

All ic_launcher.png & ic_launcher_round.png are twice as large as original icon

See original GitHub issue

Hi πŸ‘‹

Under a folder /assets, I have a file logo.png whose dimensions are 1024β€ŠΓ—β€Š1024, as specified in the readme.

I generate my icons with the simple command:

npx capacitor-assets generate --iconBackgroundColor '#eeeeee' --iconBackgroundColorDark '#222222' --splashBackgroundColor '#eeeeee' --splashBackgroundColorDark '#111111'

It generates icons for my android app, however it turns out that icons ic_launcher.png & ic_launcher_round.png are twice as big as they should be ⬇️ (Left version is the default icon provided by Ionic)

image image

Problem is that once deployed on my phone, the icon is too big: WhatsApp Image 2022-10-14 at 15 48 48

Any idea of what I’m doing wrong?

Thanks in advance

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mlynchcommented, Oct 19, 2022

Hmm, weird, they look the correct size to me (original capacitor asset on the right)

image
0reactions
Lechevalliercommented, Oct 20, 2022

Could you please try again by your side? With version 1.0.13 I get ic_launcher_foreground.png ok, but ic_launcher_round.png & ic_launcher.png bigger than it should be. With version 1.0.14 I get ic_launcher_round.png & ic_launcher.png ok, but ic_launcher_foreground.png smaller than it should be.

Read more comments on GitHub >

github_iconTop Results From Across the Web

can't change app icon in flutter its blocks ic_launcher.png ...
can't change flutter app launcher icon. it loads default android icon from integrated android library. when I try to delete ic_launcher.xml file ...
Read more >
App Not Using Launcher Icons - Microsoft Q&A
I am working on creating the launcher icons for my app, but it doesn't seem to be using them. I have edited the...
Read more >
Android adaptive app icon not properly sized for round icons
I am using a legacy app icon.png for my Asset image and using a white color as the background, it generates all the...
Read more >
Launcher icon generator - Android Asset Studio - GitHub Pages
Launcher icon generator. Source on GitHub. Foreground. Image Clipart Text. 360. 3d_rotation. 4k. 8k. ac_unit. access_alarm. access_alarms. access_time.
Read more >
Adaptive icons
An adaptive icon, or AdaptiveIconDrawable , can display differently depending on individual device capabilities and user theming.
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