GitHub user breautek added a comment to the discussion: Can't get a .png file 
to show up in splashscreen as a "AndroidWindowSplashScreenAnimatedIcon" on 
cordova-android@12. It only shows the default Cordova splashscreen.

I missed this the first time around but in your config you have

```
<preference name="AndroidWindowSplashScreenAnimatedIcon" 
src="res/android/screen/splashicon.png" />
```

the preference uses `value`, not `src` so it should be:

```
<preference name="AndroidWindowSplashScreenAnimatedIcon" 
value="res/android/screen/splashicon.png" />
```

With that being said, your splashscreen icon still doesn't look quite right. 
It's because you aren't obeying the mask. The canvas size is correct at 
960x960, but only 640px radius from the center is usable.

I took your icon and placed a circle mask as an example:

![maskSample](https://github.com/apache/cordova/assets/10145915/fb14c8fc-b216-4cc2-a1d2-95d05f651c16)

Your icon should not exceed the circle area, so as you can see your icon 
content is too large.

I used inkscape to resize the PNG down (keeping the aspect ratio) to fill the 
entire mask:

![maybeThisWillDo](https://github.com/apache/cordova/assets/11200662/678b2c21-cef8-4940-a5f4-1ff9715472ec)

But it might be better quality wise if you do it with the original project file 
for your icon.

It should look something like this when you're done:

[Screencast from 2023-09-05 07:19:07 
PM.webm](https://github.com/apache/cordova/assets/11200662/88e2b42f-f911-443b-8f0b-c61dfb115ec6)


GitHub link: 
https://github.com/apache/cordova/discussions/430#discussioncomment-6919206

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to