-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
HiDPI (32x32px) favicon.ico #1285
Comments
any issues with older browsers when using this? (especially pointing at ie7/8)? |
As @AlecRust mentioned, github is using a 32x32, and it's favicon shows up for me fine on ie 7 and ie 8 |
GitHub and Google distribute an icon with both 16x16 and 32x32 formats. On my XP virtual machine, IE6 is ignoring the GitHub icon and accepting the Google one. I think it may have nothing to do with the dual formats, but instead something to do with http vs https, but that's just a shot in the dark. |
how? .htaccess? and based on what criteria do they serve one or the other? |
Icons can embed several sizes. You can learn more about it @ http://snook.ca/archives/design/making_a_good_favicon |
No, as long as it's in the
(from: http://msdn.microsoft.com/en-us/library/ms537656%28v=vs.85%29.aspx) |
@jonathantneal: thanks for that link! Good article. I actually knew that .ico 's can have multiple images inside (just extracted the 256px version today from an icon =D) but I didn't know that this fact does help us in the browser world^^...have to find out how I actually do this with alpha transparency ... i think I try png2ico cmdline tool... @alrra: does "A shortcut icon for Internet Explorer must be square in size, and at least 16" mean we don't even have to create the 16px version bc 32px version gets scaled down |
Luk, et al, Interesting thread here as I had found Hans Christian’s H5BP Favicon psd template (linked below) right before Christmas linked from the Dork Report Fireworks Template (also linked below) and asked him about a process I’ve used for a while now to create multi-layered favicon in Gimp (linked below as well). I’ve actually taken Hans’ psd and extended it to include the 128-16px ratios which uses the same functionality in Photoshop to create all of the icons for a site from 144 precomposed down to the 32 ratio for the touch icons as well as the 128-16 ratios for the ico to be ported into Gimp. Would this PSD Template be of use to anyone else? If so, let me know and I’ll put it up on Github for anyone who wants it. Thank you for your time and patience, Jon HC PSD Template: http://drublic.de/blog/html5-boilerplate-favicons-psd-template/ The Dork Report Fireworks template: http://www.thedorkreport.com/favicon-apple-touch-icon-adobe-fireworks-template/ Multi-layered Ico: http://egressive.com/tutorial/creating-a-multi-resolution-favicon-including-transparency-with-the-gimp Random Precision Ltd. Twitter: @PrecisionCoding P Please consider the environment before printing this e-mail From: luk [mailto:[email protected]] @JonathanNeal: thanks for that link! Good article. I actually knew that .ico 's can have multiple images inside (just extracted the 256px version today from an icon =D) but I didn't know that this fact does help us in the browser world^^...have to find out how I actually do this with alpha transparency ... i think I try png2ico cmdline tool... @Airra: does "A shortcut icon for Internet Explorer must be square in size, and at least 16" mean we don't even have to create the 16px version bc 32px version gets scaled down — |
This produced a 1078 byte favicon.ico with 16x16 and 32x32 sizes. Should I file a pull request? |
This sounds good to me @jonathantneal. I think we should include the 32x32 version to support retina displays HiDPI devices. @jonrandahl I will link to your work from the article. Please ping me when you publish it :) Thanks in advance. |
Just to clarify, is there any issue with providing just the 32x32 version on its own? I'm not aware of any scaling down issues on older browsers that this causes. |
@AlecRust, after some Googling, the common excuse is that Chrome only supports the 16x16 size when the ICO format is used. If this has since changed, then we could consider dropping the 16x16 version. |
The current Stable Chrome supports all commonly used favicon implementations as far as I know, but even if it only supports the 16x16 size when the ICO format is used, surely that doesn't matter since it supports the 32x32 size. |
"but even if it only supports the 16x16 size ... surely that doesn't matter since it supports the 32x32 size" Eh? |
@ALL, interesting discussion =), thanks! @jonrandahl: yes, would definitely be interested in that psd template! and lol @chromebrowser...why is excactly one of the most modern browsers limiting something like that =)...would have expected that from IE...but chrome^^...so did sbody test that with maybe chrome 20 and a "only-32px-favicon"? and how about alpha transparency...maybe it's only my lack of some essential skills (tried generating favicons via fireworks and photoshop [with plugin]), but I usually get crappy results when using these and wanting a transparent background...I actually use the online generator @ favicon.cc, provided best results for me. will the terminal code posted above from @jonathantneal produces nice transparent favicons? and actually with this in my mind now, I would love to drop that apple-touch-icon link tag and just use the multiple icons in one file approach...but will that work? Does iOS check the favicon if there's no link tag? |
Just found this nugget too: http://www.netmagazine.com/features/create-perfect-favicon Hans, will adjust my template to include and post the GitHub link for all when done. Jon Sent from my 768/1024 mini On 9 Jan 2013, at 20:27, Alec Rust [email protected] wrote:
|
@jonathantneal possibly we're getting our wires crossed :) If we're serving a 32x32px favicon along with H5BP that either gets served at those dimensions or scaled down successfully in all browsers, why does it then matter that "Chrome only supports the 16x16 size when the ICO format is used" (which isn't the case anyway)? Why is that a reason not to remove the 16x16px version, considering it supports the 32x32px version? |
I just tested a 32x32-only version, and it worked in IE6+, Safari 4+, and the latest Chrome, Firefox, and Opera. I'll add another commit to the pull request with just the 32x32 size, and we can decide if we want to move the web forward. |
Thanks again @AlecRust and @jonathantneal ! Closing this in favor of #1286. |
HiDPI (32x32px) favicon.ico - Issue #1285
Compatibility shouldn't be a concern. h5bp/html5-boilerplate#1285 (comment)
It now seems to be pretty standard to build favicons at 32x32px rather than 16x16px to accomodate HiDPI devices (GitHub's/Apple's).
I've personally gone through all my sites and replaced the 16x16 version with 32x32, but I did notice H5BP was still using a 16x16 version.
In the same way we offer HiDPI versions of Apple Touch icons, I propose we also offer an HiDPI favicon.
The text was updated successfully, but these errors were encountered: