Comments (2)
Hello and thanks for the suggestion :)
According to Apple's developer documentation:
If there is no icon that matches the recommended size for the device, the smallest icon larger than the recommended size is used.
In other words, if you provide a very large icon, then Safari will automatically scale it down to fit the required size. Since pwa-asset-generator would also just scale the icon down if it were to provide smaller sizes, we might as well omit that step, and save the extra processing time and bandwidth, and let that happen on the device only when it is needed, and only for the exact size that is needed.
I think your suggestion of documenting this design makes sense, but given that Safari 15.4+ now supports standard web manifest icons, I think we are now looking at removing that part of the program entirely, and along with it its documentation.
from pwa-asset-generator.
In any case - it would be nice if users could define output image size themselves, so they could set-up some automation routines for everchanging OS requirements to avoid waiting for fixes from dev in cases such as this.
This feature is definitely being considered, although I am unsure whether it is actually necessary now that all browsers support the web app manifest, which allows you to serve a few standard sizes, and then let the device resize them as needed. This specific request is a duplicate of #446
from pwa-asset-generator.
Related Issues (20)
- No splash screen shown
- `--no-sandbox` doesn't work, but `-n` or `--noSandbox` does
- error trying to generate assets
- How can I generate only a favicon.ico?
- script tags are reformatted which breaks CSP sha hashes
- Consider supporting `resolution: Ndppx` media query instead of `-webkit-device-pixel-ratio: N`
- Add monochrome icons for Android
- Splash screens for current 10.9” iPad and iPad Air not generated HOT 1
- Custom device configuration
- Is there a way to only output one icon? Also, is there a way to take multiple inputs? HOT 2
- Splash screen not generated for 6th gen iPad mini HOT 1
- Put custom iOS support behind a flag HOT 3
- Next major versions of PWA Asset Generator
- Allow background images HOT 5
- splash screen resize missing Aspect-mode fill, which auto crops the image into different sizes HOT 1
- splash screen generation supports background image with crop mode HOT 1
- generateImages() function does not return a Promise
- The contents of links' href attributes are encoded
- When running with -p "0px" option I get icon size 192x196, 512x516 instead of 192x192, 512x512 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pwa-asset-generator.