Project

ffavicon

0.0
No commit activity in last 3 years
No release in over 3 years
Generate the favicon for all major browsers and platforms
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 10.0

Runtime

 Project Readme

FFavicon Maker for Rails

Gem adds a rake task for generating favicons for all major browsers and platforms and add helper for adding all favicons to layout. Use of the FaviconMaker library.

Install

Add the following line to your Gemfile:

  gem 'ffavicon'

Usage

1. Create your PNG favicon* in app/assets/images/favicon.png.
2. Type `rake ffavicon` in your terminal.
3. Your generated favicons will be output into your public directory.
4. Change 'name' in public/manifest.json in your app name
5. Add helper from your layout
<%= ffavicon_tags %>
6. You can add params
<%= ffavicon_tags ms_color: '#00aba9', theme_color: '#ffffff' %>

ms_color - color background for Windows 8 - Tile,

theme_color - color of the task bar in the switcher Android Chrome.

*I recommend to use the size of 260x260 for optimal results

Roadmap

1. If the favicon.png doesn't exist then create the favicon for the first letter of the app name.

License

The gem is available as open source under the terms of the MIT License.