pyvista.JPEGReader

Contents

pyvista.JPEGReader#

class JPEGReader(*args, **kwargs)[source]#

JPEG Reader for .jpeg and .jpg files.

Examples

>>> import pyvista as pv
>>> from pyvista import examples
>>> filename = examples.planets.download_mars_surface(load=False)
>>> filename.split('/')[-1]  # omit the path
'mars.jpg'
>>> reader = pv.get_reader(filename)
>>> mesh = reader.read()
>>> mesh.plot()
../../../_images/pyvista-JPEGReader-1_00_00.png

Methods

Attributes