-
Notifications
You must be signed in to change notification settings - Fork 23
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
Multiple sizes for the Apple Touch icon package #211
Comments
Done. Conclusion: you can usually provide a single, 180x180 icon. iOS scaling is fine. The only exception is when the wanted scaling algorithm is particular (eg. Nearest Neighbor). But even in this case, although iOS scaling is not perfect, it's okay. It's all here: https://realfavicongenerator.net/blog/how-ios-scales-the-apple-touch-icon/ |
Implemented in branch |
Deployed yesterday |
@phbernard Thanks for the efforts! I've noticed, that not a while ago RFG yielded following: <link rel='apple-touch-icon' href='/apple-touch-icon.png'> but recently it started to add <link rel='apple-touch-icon' sizes='180x180' href='/apple-touch-icon.png'> I wonder, is it really needed? What reason stands behind that change? |
@phbernard? Anyone? |
looks like this is not needed
https://github.com/webhintio/hint/blob/main/packages/hint-apple-touch-icons/README.md |
Currently, RFG creates something like 10 Apple Touch icons:
apple-touch-icon-57x57.png
toapple-touch-icon-180x180.png
(9 icons).apple-touch-icon.png
apple-touch-icon-precomposed.png
These pictures are built and declared after Apple specs.
The situation
Pros:
/apple-touch-icon-74x74.png
):Cons:
touch-icon
directory to the root directory, use Gulp/Grunt to move these files at deployment time...).Solution
Naive solution: two policies, the "light package" and the "full package". Sounds good. However, this is not that simple. For example, if files are in the root directory, I would like:
apple-touch-icon.png
,apple-touch-icon-144x144.png
,apple-touch-icon-precomposed-120x120.png
... after all, these files don't annoy me (I use Gulp to put them in root at the last minute), they will prevent as many 404 as possible...This leads to two settings:
apple-touch-icon.png
, 180x180)apple-touch-icon.png
,apple-touch-icon-ZZZxZZZ.png
andapple-touch-icon-precomposed.png
)apple-touch-icon.png
,apple-touch-icon-ZZZxZZZ.png
,apple-touch-icon-precomposed.png
andapple-touch-icon-precomposed-ZZZxZZZ.png
)apple-touch-icon.png
)apple-touch-icon-ZZZxZZZ.png
)These settings depend on the location of the files (root or not) and possibly the scaling algorithm that was chosen by the user of RFG. Some testing must be done in this area.
Note: declaring the precomposed icons is quite useless. It was useful before iOS 7 when you didn't want iOS to manipulate your icon (the gloss effect). RFG doesn't (and won't) let you play with this deprecated feature.
Implementation
The implementation must meet a requirement: all this must be kept as simple as possible. Most users just want icons that work, not tedious choices.
To do this, we add an "Options" tab in the iOS section of the icon editor. In this tab, the default selection matches current RFG behavior, or maybe a lighter package (to be decided after the experiments with the scaling algorithm).
Right now I'm not comfortable with the next steps until I know more about the scaling algorithm issue. So I consider these experiments as the next TODO to go.
The text was updated successfully, but these errors were encountered: