Last chance! 50% off unlimited learning
Sale ends in
Call the command optipng
via system2()
to optimize all PNG
files under a directory.
optipng(dir = ".", files = all_files("[.]png$", dir), ...)
Path to a directory.
Alternatively, you can choose the specific files to optimize.
Arguments to be passed to system2()
.
OptiPNG: https://optipng.sourceforge.net.