Code Monkey home page Code Monkey logo

Comments (4)

haydenbleasel avatar haydenbleasel commented on July 20, 2024

Yeah sorry, it's a bit weird. Old implementation (1.x.x) of Favicons has support for multiple image sizes based on the icon size. New one has support for multiple image sizes based on the platform, different syntax. I have to update this, thanks for pointing it out!

from favicons.

indolering avatar indolering commented on July 20, 2024

It is still not clear to me how I would, for example, specify a primary SVG for the larger sizes and a secondary image for 16x16 and 24x24.

from favicons.

haydenbleasel avatar haydenbleasel commented on July 20, 2024

That implementation of size-based images was in version 1. Since then, we've started using the RealFaviconGenerator API which gives us the ability to use platform-based images only, for example:

A master picture can also be declared for each platform. For example, if a specific icon was designed for iOS:

"ios": {
    "master_picture": {
        "type": "url",
        "url": "http://somesite.com/some_pic.png"
    },
    "picture_aspect": "no_change"
},

With that in mind, if you'd like this functionality to be in the RealFaviconGenerator API then I recommend contacting Philippe as it's totally up to him :)

As for our functionality at the moment, you can check it out here:

https://github.com/haydenbleasel/favicons#multiple-sources

from favicons.

troxler avatar troxler commented on July 20, 2024

@haydenbleasel Has this changed in the meantime? The configuration example states that source can be an "array of { size: filepath }". But how exactly would be the notation of that?

from favicons.

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.