johnsorrentino / favicon.js Goto Github PK
View Code? Open in Web Editor NEWGiven a HTML5 canvas return an ICO formatted favicon.
License: MIT License
Given a HTML5 canvas return an ICO formatted favicon.
License: MIT License
Looks like the latest commit has accidentally overridden the bulk of the library's core functionality.
Confirming this was done in error?
Love your script, a NPM package would be very helpful
Thank you very much for your effort!
The Problem
OpenSearch-compliant browsers use favicon in searchbox, some browser limits size of favicon for to 10KB in opensearchdescriptionxml
Remotely fetched favicons must not be larger than 10KB see bug 361923.
I use favicon.io to generate favicon, favicon.io depends on favicon.js, it generates three sizes(16x16,32x32,48x48), and file size of one generated ICO is usually near 16KB.
Possible Solution
To keep favicon.ico in 10KB, I think it's neccesary to store ico entries larger than 32x32 as PNG, even though some test shows PNG is slower(loading+rendering) than BMP for small files.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.