Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The default favicon in /misc/favicon.ico is 16x16 and looks awful on retina screens.
Proposed resolution
Replace misc/favicon.ico with a retina version. See https://github.com/audreyr/favicon-cheat-sheet for comprehensive information but in this case we are merely trying to fix the basic icon.
Remaining tasks
- Create a 32x32 favicon.
- Test on various devices.
- Backport.
User interface changes
Non-pixelated favicons should appear on browser tabs.
Before:
After:
API changes
Any derived themes that may somehow depend on a 16x16 icon could have an issue.
Original report by @aendrew
Comment | File | Size | Author |
---|---|---|---|
#21 | 1883058-21.patch | 6.63 KB | cilefen |
#5 | after.png | 43.01 KB | cilefen |
#5 | before.png | 33.81 KB | cilefen |
#4 | 1883058-4.patch | 6.65 KB | cilefen |
Comments
Comment #1
aendra CreditAttribution: aendra commentedAnd a patch. File used is the one specified above (I.e., http://drupal.org/misc/favicon.ico).
Comment #2
aendra CreditAttribution: aendra commentedUpdating title for clarity.
Comment #2.0
aendra CreditAttribution: aendra commentedClarified "perfect".
Comment #2.1
aendra CreditAttribution: aendra commentedAdded article link.
Comment #3
cilefen CreditAttribution: cilefen commentedUpdated the summary, tagged "novice", changed to 8.x and component "Stark theme".
Comment #4
cilefen CreditAttribution: cilefen commentedComment #5
cilefen CreditAttribution: cilefen commentedBefore:
After:
Comment #6
cilefen CreditAttribution: cilefen commentedComment #7
davidhernandezI'm struggling to think why a theme would depend on the 16x16 file. Are there use cases anyone knows of? I believe it is documented that older browsers will size down the larger image.
Comment #8
cilefen CreditAttribution: cilefen commentedThe icon file in the patch contains 16x16 and 32x32.
Comment #9
cilefen CreditAttribution: cilefen commentedComment #10
cilefen CreditAttribution: cilefen commentedComment #11
cilefen CreditAttribution: cilefen commentedComment #12
Bojhan CreditAttribution: Bojhan commentedSounds good.
Comment #13
Sam152 CreditAttribution: Sam152 commentedManually tested, looks great. Can't think of any reason this shouldn't be RTBC. Not sure anything would reasonably depend on the size of the icon.
Comment #14
webchickNice!
Committed and pushed to 8.x. Thanks!
Comment #17
webchickSilly testbot.
Comment #18
cilefen CreditAttribution: cilefen commentedCan anyone think of a reason not to backport this?
Comment #19
markhalliwellI do not see why not, go for it.
Comment #20
dcam CreditAttribution: dcam commentedSetting the status so it will get noticed by patch-porters.
Comment #21
cilefen CreditAttribution: cilefen commentedD7 patch.
Comment #22
jecunningham2281 CreditAttribution: jecunningham2281 commentedTested in Drupal 7.34 Everything Looks good to me.
Comment #23
ChuChuNaKu CreditAttribution: ChuChuNaKu commented#SprintWeekend2015
Comment #24
mikemiles86Comment #27
dcam CreditAttribution: dcam commentedComment #30
David_Rothstein CreditAttribution: David_Rothstein commentedTestbot fluke.
Comment #33
dcam CreditAttribution: dcam commentedComment #34
David_Rothstein CreditAttribution: David_Rothstein commentedCommitted to 7.x - thanks!