gleero / grunt-favicons

Generate favicon.ico and icons for iOS, Android and WP8
MIT License
233 stars 48 forks source link

Source file resolution prefix #68

Open gibbs opened 8 years ago

gibbs commented 8 years ago

Has anybody managed to get this to work? I have the following files; logo.128x128.png logo.16x16.png logo.png however logo.png only gets used.

favicons: {
  options: {
      androidHomescreen: true,
      apple: true,
      appleTouchBackgroundColor: '#ffffff',
      coast: true,
      firefox: true,
      firefoxRound: true,
      html: './media/favicons/markup.html',
      HTMLPrefix: '/media/favicons/',
      precomposed: false,
      regular: true,
      sharp: 1,
      tileBlackWhite: false,
      tileColor: '#ffffff',
      trueColor: true,
      windowsTile: true
  },
  icons: {
      src:  'media/favicons/original/logo.png',
      dest: 'media/favicons/'
  }
},

Am I missing something here?

viktorbijlenga commented 8 years ago

What are you trying to achieve?

gibbs commented 8 years ago

Maybe I've got the wrong impression but from the readme;

Input: square logo in png. You can also keep near the source files with resolution prefix e.g. source.16x16.png.

I was assuming I could use different images depending on the image dimensions. All 16x16 icons would use the logo.16x16.png for example.

viktorbijlenga commented 8 years ago

@gleero Any input on this? According to the readme this should work right?