Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

It is not good for icon size always be square #71

Open
hank7444 opened this issue Jul 25, 2018 · 1 comment
Open

It is not good for icon size always be square #71

hank7444 opened this issue Jul 25, 2018 · 1 comment

Comments

@hank7444
Copy link

hank7444 commented Jul 25, 2018

iOS splash screen images aren't square shape, they are rectangle

I put size as follows:

{
    src: path.resolve(`src/style/img/iosSplashScreen/${imgName}`),
    size: '640x1136',
    destination: path.join('pwa', 'ios'),
    ios: 'startup',
  };

but the output image size become 640 x 640px, has any good idea?

Otherwise, I saw output metas "apple-touch-startup-image" don't have media query at all :(

image

it should be like this:

<link rel="apple-touch-startup-image" href="images/splash/launch-640x1136.png" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="images/splash/launch-750x1294.png" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="images/splash/launch-1242x2148.png" media="(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="images/splash/launch-1125x2436.png" media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="images/splash/launch-1536x2048.png" media="(min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="images/splash/launch-1668x2224.png" media="(min-device-width: 834px) and (max-device-width: 834px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="images/splash/launch-2048x2732.png" media="(min-device-width: 1024px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait)">

@DarkMatterMatt
Copy link

Possibly could be solved by #125?

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

No branches or pull requests

3 participants