code: def write_implied_format(self, path, jpeg_quality=0, jpeg_progressive=0):
          
          filename = fspath(path)
          with _LeptonicaErrorTrap():
              lept.pixWriteImpliedFormat(
                  os.fsencode(filename), self._cdata, jpeg_quality, jpeg_progressive
              )
docs: Write pix to the filename, with the extension indicating format.
  
          jpeg_quality -- quality (iff JPEG; 1 - 100, 0 for default)
          jpeg_progressive -- (iff JPEG; 0 for baseline seq., 1 for progressive)