Image Properties


Image Properties require pypng to be installed. This may be installed with pip install properties[full], pip install properties[image], or pip install pypng.


class properties.ImagePNG(doc, mode='rb', **kwargs)[source]

Property for PNG images

Available keywords (in addition to those inherited from Property):

  • mode: Opens the file in this mode. Must be a binary mode that supports file reading. Default value is ‘rb’.
  • valid_modes: Tuple of valid modes for open files. This must include mode. If nothing is specified, valid_mode is set to mode.
  • filename - Name associated with open copy of PNG image. Default is ‘texture.png’.