pyvista_zstd.Reader.thumbnail

Contents

pyvista_zstd.Reader.thumbnail#

property Reader.thumbnail: bytes | None#

Return the embedded PNG thumbnail, or None when the file has none.

Examples

>>> import pyvista as pv
>>> import pyvista_zstd
>>> pyvista_zstd.write(pv.Sphere(), "sphere.pv", thumbnail=True)
>>> png = pyvista_zstd.Reader("sphere.pv").thumbnail