If no outfile
is specified, then the input file is compressed in place.
1 | optipng(infile, level = 1, outfile = infile, verbosity = 0)
|
infile |
PNG file to optimise |
level |
Compression level. Valid values 0-7. Default 1. |
outfile |
output PNG location. If not specified, input file will be overwritten |
verbosity |
verbosity level. Possible values: 0, 1, 2. Default: 0 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.