library(magick)
## Warning: package 'magick' was built under R version 4.2.2
## Linking to ImageMagick 6.9.12.3
## Enabled features: cairo, freetype, fftw, ghostscript, heic, lcms, pango, raw, rsvg, webp
## Disabled features: fontconfig, x11
inp_img <- image_read("http://polytopes.net/Tora_color.png")
image_info(inp_img)
## format width height colorspace matte filesize density
## 1 PNG 77 133 sRGB TRUE 22377 28x28
image_info(inp_img)
## format width height colorspace matte filesize density
## 1 PNG 77 133 sRGB TRUE 22377 28x28
plot(inp_img)

mod_img <- image_modulate(inp_img, brightness = 120, saturation = 20,
hue = 20)
plot(mod_img)
