Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android splash screen looks distorted on Samsung S9 #547

Open
savageqm opened this issue Aug 11, 2023 · 4 comments
Open

Android splash screen looks distorted on Samsung S9 #547

savageqm opened this issue Aug 11, 2023 · 4 comments

Comments

@savageqm
Copy link

savageqm commented Aug 11, 2023

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",

@hembachrterran
Copy link

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.

@hodirt
Copy link

hodirt commented Oct 9, 2023

same issue here. Would be great to have ot fixed

@reed-lawrence
Copy link

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

@dliebner
Copy link

How can we fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants