capacitor-resources icon indicating copy to clipboard operation
capacitor-resources copied to clipboard

Android Icon & Splash screen size went wrong

Open dodomui opened this issue 4 years ago • 10 comments

Hi I'm facing the android icon scaling wrong size. It seem fine in the generated png file, but after install to the Android devices, the icon seem scaling 1.5 times

Anyone experience this kind of issue? It working just fine in iOS using same icon file.

dodomui avatar Aug 20 '21 04:08 dodomui

I have the same problem on android.

pubkey avatar Aug 25 '21 01:08 pubkey

I have the same problem on android. Has anyone found any solution?

GasGTI avatar Sep 07 '21 18:09 GasGTI

Same problem!

amicoderozer avatar Sep 30 '21 10:09 amicoderozer

Same problem. iOS works just fine, but android fails

Jo-Chris avatar Oct 05 '21 08:10 Jo-Chris

I used cordova-res as workaround.

npm install -g cordova-res
cordova-res android --skip-config --copy

The only bad thing is, I had to resize all the splash images manually to make them fit various device screens. But I used the splash image in the format asked by capacitor-resources (2732px), so maybe that's the problem.

It's not a solution, but at least I have the icon for Android.

Credit: https://stackoverflow.com/a/66625135/6503002

amicoderozer avatar Oct 05 '21 09:10 amicoderozer

But does it also copy the files into the android project? Thats why i choose to move from cordova-resources to this project

Jo-Chris avatar Oct 05 '21 09:10 Jo-Chris

@Jo-Chris Yes it does!

amicoderozer avatar Oct 05 '21 10:10 amicoderozer

ok i'll give it a try these days. Thanks

Jo-Chris avatar Oct 05 '21 11:10 Jo-Chris

I'm still having issues with the wrong sizes too

kenibarwick avatar Dec 02 '21 20:12 kenibarwick

Try : npx capacitor-resources -p android -t cover

bastyen avatar Mar 28 '22 13:03 bastyen