Git Product home page Git Product logo

favicon.js's Introduction

guitartuner.js

Favicon.js is a lightweight library that allows you to create ICO and PNG formatted favicons from a canvas element.

Demo

yarn install
yarn watch
yarn demo

NPM

Local package testing.

npm install ../guitartuner.js

This is in a private NPM repo.

npm publish

favicon.js's People

Contributors

johnsorrentino avatar u3u avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

favicon.js's Issues

Text generated favicon not vertically centered

On Brave (Version 1.21.77 Chromium: 89.0.4389.90 (Official Build) (x86_64) on MacOS, the generated text icon is vertically aligned to the top rather than centered and there doesn't seem to be an adjustment option.

image

Favicon too large for some browser.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.