writeRGB

lsst.afw.display.writeRGB(fileName, rgbImage)

Write an RGB image to disk

Parameters:
fileName : str

The output file. The suffix defines the format, and must be supported by matplotlib

Most versions of matplotlib support png and pdf (although the eps/pdf/svg writers may be buggy, possibly due an interaction with useTeX=True in the matplotlib settings).

If your matplotlib bundles pil/pillow you should also be able to write jpeg and tiff files.

rgbImage

The image, as made by e.g. makeRGB