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 fnamewill be run. If it fails because theoptipngexecutable is not found or optipng fails, the function returns.args (tuple) – Extra command-line arguments, such as
['-o7'].