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

Wrong icon size is generated for splash screen

Open holgersindbaek opened this issue 3 years ago • 3 comments

I'm trying to generate icon and splash screen for my android app, but the icon in the splash screen gets cropped:

Screenshot 2022-12-08 at 17 03 18

It seems like the color isn't correct on the splash screen background either. I'm using the following command to generate the assets:

npx capacitor-assets generate --iconBackgroundColor '#EDC22E' --splashBackgroundColor '#EDC22E' --assetPath 'public/images' --logoSplashScale 0.1

From what I can tell "logoSplashScale" doesn't do anything either.

holgersindbaek avatar Dec 08 '22 16:12 holgersindbaek

Same issue experienced on my end.

kyllerss avatar Mar 06 '23 01:03 kyllerss

Treating 0.1 like a string "0.1" made a difference. :)

gklasen avatar May 06 '23 21:05 gklasen

I am experiencing the same issue, --iconBackgroundColor and --logoSplashScale params are not working, they have no impact on the output logo and splashscreen ("@capacitor/assets": "2.0.4"), no matter if I put the scale number as a string or not as @gklasen suggested

gabides avatar May 11 '23 12:05 gabides