sphinx_gallery.utils.optipng#

Optimize a PNG in place.

param fname:

The filename. If it ends with ‘.png’, optipng -o7 fname will be run. If it fails because the optipng executable is not found or optipng fails, the function returns.

type fname:

str

param args:

Extra command-line arguments, such as ['-o7'].

type args:

tuple