  #!/usr/bin/env python3
  """ Image output writer for faceswap.py converter """
  
  import os
  from io import BytesIO
  from PIL import Image
  
  from ._base import Output, logger
  
 
</s> remove         filename = os.path.splitext(filename)[0]
 </s> add         filename = os.path.splitext(os.path.basename(filename))[0] </s> remove             retval = sum([fr[1] - fr[0] for fr in self.frame_ranges])
 </s> add             retval = sum([fr[1] - fr[0] + 1 for fr in self.frame_ranges]) </s> remove         out_filename = "{}.{}".format(os.path.splitext(filename)[0], self.config["format"])
 </s> add         filename = os.path.splitext(os.path.basename(filename))[0]
        out_filename = "{}.{}".format(filename, self.config["format"]) </s> remove     def output_filename(self, filename):
        """ Return the output filename with the correct folder and extension """
        out_filename = "{}.{}".format(os.path.splitext(filename)[0], self.config["format"])
        out_filename = os.path.join(self.output_folder, out_filename)
        logger.trace("in filename: '%s', out filename: '%s'", filename, out_filename)
        return out_filename

 </s> add 
  #!/usr/bin/env python3
  """ Image output writer for faceswap.py converter """
  

  from io import BytesIO
  from PIL import Image
  
  from ._base import Output, logger
  
keep keep keep replace keep keep keep keep keep
 Bugfixes [convert[: Correct output folder. Correct tqdm for skipped frames. 
plugins/convert/writer/pillow.py