sphinx_gallery.utils.optipng#
- sphinx_gallery.utils.optipng(fname, args=())#
Optimize a PNG in place.
- Parameters:
fname (str) – The filename. If it ends with ‘.png’,
optipng -o7 fname
will be run. If it fails because theoptipng
executable is not found or optipng fails, the function returns.args (tuple) – Extra command-line arguments, such as
['-o7']
.