Giter VIP home page Giter VIP logo

Comments (5)

EyalAr avatar EyalAr commented on July 17, 2024

@griiettner
Good point.
I'm not very familliar with the structure of .ico file, but if I'm not mistaken, those are just bitmaps, right?
Will implementing support for BMP format solve this?

from lwip.

griiettner avatar griiettner commented on July 17, 2024

I don`t believe that implementing BPM will sove this... ICO has a very different approach, where inside one single file you can have different images and sizes...

from lwip.

four43 avatar four43 commented on July 17, 2024

Ico files seem like a thing of the past. Most browsers can handle more sane formats: http://en.m.wikipedia.org/wiki/Favicon

What's your target version that you need an Ico file?

from lwip.

EyalAr avatar EyalAr commented on July 17, 2024

Indeed all browsers today can use PNG as favicons.
I'll keep the .ico format in mind, but it's probably not a priority (gif, for example, is more urgent);
unless:

  1. more people ask for it. or -
  2. somebody wants to pick it up and send a pull request.

from lwip.

jaydenseric avatar jaydenseric commented on July 17, 2024

@EyalAr I for one would love to see this. @four43 .ico is part of the HTML5 spec and it is still best practice to include it, the HTML5 Boilerplate project has a favicon.ico in the root and there is no discussion to remove it. Imagemagick is the only non Node CLI tool I use, and only because there is nothing on NPM that can convert .png to .ico. If you were to add this feature I could see a lot of people using this project overnight.

Here is the Wikipedia summary of the Microsoft .ico spec:

An ICO or CUR file is made up of an ICONDIR ("Icon directory") structure, containing an ICONDIRENTRY structure for each image in the file, followed by a contiguous block of all image bitmap data (which may be in either Windows BMP format, excluding the BITMAPFILEHEADER structure, or in PNG format, stored in its entirety).

Here is the Imagemagick source code for .ico read/write.

Here is a Java .png to .ico implementation from 2013.

from lwip.

Related Issues (20)

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.