euporie.core.convert.formats.png
Contain functions which convert data to png format.
Functions
|
Convert base64 encoded data to bytes. |
|
Verify a list of external commands exist on the system. |
|
Verify a list of python modules are importable. |
|
Convert image data to PNG bytes using |
|
Render LaTeX as a png image using dvipng. |
|
Render LaTeX as a png image using :py:module:`matplotlib`. |
|
Convert a pillow image to sixels |
|
Add a converter to the centralized format conversion system. |
|
Convert SVG to PNG using |
Classes
partial(func, *args, **keywords) - new function with partial application of the given arguments and keywords. |
- async euporie.core.convert.formats.png.latex_to_png_dvipng(data: str, width: int | None = None, height: int | None = None, fg: str | None = None, bg: str | None = None, path: Path | None = None, initial_format: str = '', timeout: int = 2) bytes | None
Render LaTeX as a png image using dvipng.
Borrowed from IPython.
- async euporie.core.convert.formats.png.latex_to_png_py_mpl(data: str, width: int | None = None, height: int | None = None, fg: str | None = None, bg: str | None = None, path: Path | None = None, initial_format: str = '') bytes
Render LaTeX as a png image using :py:module:`matplotlib`.
Borrowed from IPython.