Last active
February 14, 2019 21:32
-
-
Save jeroen/0fb0d445523f41a291f1c10a3b26b301 to your computer and use it in GitHub Desktop.
Generate favicon with magick
This file contains 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
library(magick) | |
library(magrittr) | |
# Convert to 'ico' format | |
image_read("https://www.r-project.org/logo/Rlogo.png") %>% | |
image_scale("32x32!") %>% # remove the "!" after 32x32 to scale proportionally | |
image_write("favicon.ico", format = "ico") | |
# Favicon can also be png/gif | |
image_read("https://www.r-project.org/logo/Rlogo.png") %>% | |
image_scale("32x32") %>% | |
image_write("favicon.ico", format = "png") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment