Last active
January 28, 2025 11:23
-
-
Save arnaudlevy/9f7e94e8f9029cc0bfca19d40fa2c8f0 to your computer and use it in GitHub Desktop.
Fix Osuny Favicons
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/follmann/favicon_maker | |
# gem install favicon_maker | |
require 'favicon_maker' | |
Dir.glob("./**/favicon.png").each do |png| | |
directory = png.gsub('favicon.png', '') | |
FaviconMaker.generate do | |
setup do | |
template_dir directory | |
output_dir directory | |
end | |
from "favicon.png" do | |
icon "favicon.ico", size: "64x64,32x32,24x24,16x16" | |
end | |
each_icon do |filepath| | |
puts filepath | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment