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

Android splash screen looks distorted on Samsung S9

Open savageqm opened this issue 1 year ago • 4 comments

Currently, my splash screen is being distorted when I test on a Samsung S9 with the following spec below:

Samsung S9 Dimensions 5.8 INCH 5.81 x 2.70 x 0.33 INCH Samsung S9 Resolution 1440 x 2960 PX ~ 570 PIXELS PER INCH Samsung S9 Viewport 360 x 740 PX ~ 143 PIXELS PER INCH

What i'm experiencing is that the image is being squeeze and instead of my logo looking round it's looking oval. Anything I can do to improved this?

My setup is Android SDK : 10 "@capacitor/assets": "^2.0.4", "@capacitor/android": "^5.0.0", "@ionic/react": "^6.0.0",

savageqm avatar Aug 11 '23 16:08 savageqm

The new Android API expect an 1:1 ratio image for splash screen (icon). This plugin generates different image sizes for splash from the image you provide and fill the background with a color. So Android will disort your image to fit in a 1:1 box. I do not recomment this, but an ASAP solution could be, if you change the generated sizes in: node_modules@capacitor\assets\dist\platforms\android\assets.js height and width have to match inside the rule.

hembachrterran avatar Aug 17 '23 08:08 hembachrterran

same issue here. Would be great to have ot fixed

hodirt avatar Oct 09 '23 17:10 hodirt

This is still an issue in March 2024. This repo is starting to look like abandon-ware lol.

reed-lawrence avatar Mar 14 '24 15:03 reed-lawrence

How can we fix this?

dliebner avatar Jul 16 '24 04:07 dliebner