Giter VIP home page Giter VIP logo

Comments (13)

msftbot avatar msftbot commented on August 14, 2024

Hello peterpeterparker, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will investigate the issue and help solve it ASAP. Other community members may also look into the issue and provide feedback 🙌

from cloudapk.

msftbot avatar msftbot commented on August 14, 2024

Hello peterpeterparker, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will investigate the issue and help solve it ASAP. Other community members may also look into the issue and provide feedback 🙌

from cloudapk.

jgw96 avatar jgw96 commented on August 14, 2024

Hmmm @peterpeterparker , it should be using your 512x512 icon from your manifest https://github.com/pwa-builder/PWABuilder/blob/master/components/Download.vue#L97, is that icon blurry outside of the TWA?

from cloudapk.

peterpeterparker avatar peterpeterparker commented on August 14, 2024

@jgw96 the 512x512 isn't that really blurry.

source: https://deckdeckgo.com/assets/favicon/android-chrome-512x512.png

maybe some transformations are applied when the splash images are generated? or is it "just" a zooming question (the img on the splash of the pwa is smaller)?

from cloudapk.

andreban avatar andreban commented on August 14, 2024

I think what may be happening is that the 512x512 image is being stretched to generate an xxhdpi image, which would be 900x900px. An xxxhdpi would be even worse, as it's 1200x1200, but I think that is usually used on tabled devices - https://github.com/GoogleChromeLabs/bubblewrap/blob/master/packages/core/src/lib/TwaGenerator.ts#L58-L59

I'll check generation in Bubblewrap (https://github.com/GoogleChromeLabs/bubblewrap) and file the issue there. A solution would be not to generate stretched images and check how the browser will handle smaller images. If the browser stretches it, we may need to generate images with transparent space instead of stretching the icon.

from cloudapk.

andreban avatar andreban commented on August 14, 2024

Looking at the payload for generateSignedApk, it seems to be using the 192x192 image instead of 512x512. I checked out the Bubblewrap CLI, and it uses the 512x512 image.

{
    "packageId": "com.deckdeckgo.twa",
    "host": "deckdeckgo.com",
    "name": "DeckDeckGo",
    "themeColor": "#ffffff",
    "navigationColor": "#ffffff",
    "backgroundColor": "#ffffff",
    "startUrl": "/",
    "iconUrl": "https://deckdeckgo.com/assets/favicon/android-chrome-192x192.png",
    "maskableIconUrl": "https://deckdeckgo.com/assets/favicon/android-chrome-192x192.png",
    "appVersion": "1.0.0",
    "useBrowserOnChromeOS": true,
    "splashScreenFadeOutDuration": 300,
    "enableNotifications": false,
    "shortcuts": [],
    "signingInfo": {
        "fullName": "John Doe",
        "organization": "Contoso",
        "organizationalUnit": "Engineering Department",
        "countryCode": "US"
    }
}

Here's what the splash generated by the Bubblewrap CLI looks like:
Screenshot_20200422-091516

from cloudapk.

jgw96 avatar jgw96 commented on August 14, 2024

@andreban ahh ok, interesting. So this is probably a logic issue on our side of things, ill take a look at this. Thanks Andre!

from cloudapk.

jgw96 avatar jgw96 commented on August 14, 2024

Update: Got a fix here pwa-builder/PWABuilder@e5532a0 for this issue. Working on the related issue #18 and then ill deploy.

from cloudapk.

jgw96 avatar jgw96 commented on August 14, 2024

Fixed as part of #18

from cloudapk.

peterpeterparker avatar peterpeterparker commented on August 14, 2024

The ratio works like a charm thx to your fix @jgw96 👍

from cloudapk.

peterpeterparker avatar peterpeterparker commented on August 14, 2024

2020-04-24 19 18 44

from cloudapk.

jgw96 avatar jgw96 commented on August 14, 2024

Epic, thank you! Really appreciate you giving our service a try (:

from cloudapk.

peterpeterparker avatar peterpeterparker commented on August 14, 2024

My pleasure, it's really a great and handy service!

from cloudapk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.