The PDS Geosciences Node has created a Jupyter Notebook (jupyterNotebookViewIMG.zip) to provide users with an option for viewing a browse representation of a PDS3 or PDS4 image and saving it as a PNG file using Python code. A Jupyter Notebook is an open source web application interface for creating and sharing code examples and documentation. The patterns provided in the Jupyter Notebook can be used as a sample for your own code when working with PDS images in Python.
More about the Jupyter Notebook can be found here:
https://pds-geosciences.wustl.edu/tools/pds_image_jupyternb.html