optipng: Run OptiPNG on all PNG files under a directory

View source: R/command.R

optipngR Documentation

Run OptiPNG on all PNG files under a directory

Description

Call the command optipng via system2() to optimize all PNG files under a directory.

Usage

optipng(dir = ".", files = all_files("[.]png$", dir), ...)

Arguments

dir

Path to a directory.

files

Alternatively, you can choose the specific files to optimize.

...

Arguments to be passed to system2().

References

OptiPNG: https://optipng.sourceforge.net.


xfun documentation built on Nov. 17, 2022, 1:06 a.m.