                  logger.debug("EOF Received")
                  break
              filename, image = item
              self.writer.write(filename, image)
          self.writer.close()
          completion_event.set()
          logger.debug("Save Faces: Complete")
  
  
 
</s> remove         for _ in tqdm(range(self.total_count), desc="Converting", file=sys.stdout):
 </s> add         write_preview = self.args.redirect_gui and self.writer.is_stream
        preview_image = os.path.join(self.writer.output_folder, ".gui_preview.jpg")
        logger.debug("Write preview for gui: %s", write_preview)
        for idx in tqdm(range(self.total_count), desc="Converting", file=sys.stdout): </s> remove         logger.trace("Resizing image: (name: '%s', framesize: %s", name, framesize)
 </s> add         logger.debug("Resizing image: (name: '%s', framesize: %s", name, framesize) </s> remove         logger.trace("Getting size: '%s'", name)
 </s> add         logger.debug("Getting size: '%s'", name)
            # Write out preview image for the GUI every 10 frames if writing to stream
            if write_preview and idx % 10 == 0 and not os.path.exists(preview_image):
                logger.debug("Writing GUI Preview image: '%s'", preview_image)
                imwrite(preview_image, image)
                  logger.debug("EOF Received")
                  break
              filename, image = item
            # Write out preview image for the GUI every 10 frames if writing to stream
            if write_preview and idx % 10 == 0 and not os.path.exists(preview_image):
                logger.debug("Writing GUI Preview image: '%s'", preview_image)
                imwrite(preview_image, image)
              self.writer.write(filename, image)
          self.writer.close()
          completion_event.set()
          logger.debug("Save Faces: Complete")
  
  
keep keep add keep keep keep keep keep keep
 GUI: Preview for convert

Display preview when outputting to a stream container (e.g. video, gif) 
scripts/convert.py