pyvista.JPEGReader#

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

JPEG Reader for .jpeg and .jpg files.

Examples

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

Methods

JPEGReader.hide_progress()

Hide the progress bar when loading the file.

JPEGReader.read()

Read data in file.

JPEGReader.show_progress([msg])

Show a progress bar when loading the file.

Attributes

JPEGReader.path

Return or set the filename or directory of the reader.

JPEGReader.reader

Return the vtk Reader object.