API Reference

The main entry point to start working with RAW images is rawpy.imread(). It returns a rawpy.RawPy object on which all further operations have to be performed.

rawpy.imread(pathOrFile, shot_select=0)

Convenience function that creates a rawpy.RawPy instance, opens the given file, and returns the rawpy.RawPy instance for further processing.

Parameters:
  • pathOrFile (str|file) – path or file object of RAW image that will be read

  • shot_select (int) – select which image to extract from RAW files that contain multiple images (e.g., Dual Pixel RAW). Default is 0 for the first/main image.

Return type:

rawpy.RawPy