sphinx_gallery.utils.optipng¶
Optimize a PNG in place.
- param fname
The filename. If it ends with ‘.png’,
optipng -o7 fnamewill be run. If it fails because theoptipngexecutable is not found or optipng fails, the function returns.- type fname
str
- param args
Extra command-line arguments, such as
['-o7'].- type args
tuple