Skip to main content
Ctrl+K

Modeva-AI

  • Installation
  • User Guide
  • API Reference
  • Gallery
  • Changelog
  • GitHub
  • PyPI
  • Installation
  • User Guide
  • API Reference
  • Gallery
  • Changelog
  • GitHub
  • PyPI
  • sphinx_gallery.utils.optipng

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 the optipng executable is not found or optipng fails, the function returns.

  • args (tuple) – Extra command-line arguments, such as ['-o7'].

On this page
  • optipng()

© Copyright 2024-2025, Modeva Team.

Built with the PyData Sphinx Theme 0.16.0.