leonardoquevedox / capacitor-resources

Generates icon & splash screen for Capacitor projects using javascript only.
MIT License
136 stars 16 forks source link

Android Icon & Splash screen size went wrong #10

Open dodomui opened 3 years ago

dodomui commented 3 years ago

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.

pubkey commented 3 years ago

I have the same problem on android.

GasGTI commented 3 years ago

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

amicoderozer commented 2 years ago

Same problem!

Jo-Chris commented 2 years ago

Same problem. iOS works just fine, but android fails

amicoderozer commented 2 years ago

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

Jo-Chris commented 2 years ago

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

amicoderozer commented 2 years ago

@Jo-Chris Yes it does!

Jo-Chris commented 2 years ago

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

kenibarwick commented 2 years ago

I'm still having issues with the wrong sizes too

bastyen commented 2 years ago

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