              self._legacy_check()
          self._saver = ImagesSaver(self._faces_dir, as_bytes=True)
          self._export_faces()
  
      def _check_folder(self):
          """ Check that the faces folder doesn't pre-exist and create. """
          err = None
          if not self._faces_dir:
              err = "ERROR: Output faces folder not provided."
          elif not os.path.isdir(self._faces_dir):
 
</s> remove         if self._is_legacy and extracted_faces != 0 and not self._arguments.large:
 </s> add         if self._is_legacy and extracted_faces != 0 and self._min_size == 0: </s> remove         with open(output_file, "w") as f_output:
 </s> add         with open(output_file, "w", encoding="utf8") as f_output: </s> remove         processor = getattr(self, "_get_{}".format(action))
 </s> add         processor = getattr(self, f"_get_{action}") </s> remove     def _pad_legacy_masks(cls, detected_face):
 </s> add     def _pad_legacy_masks(cls, detected_face: DetectedFace) -> None:
    def _check_folder(self) -> None:
              self._legacy_check()
          self._saver = ImagesSaver(self._faces_dir, as_bytes=True)
          self._export_faces()
  
    def _check_folder(self) -> None:
          """ Check that the faces folder doesn't pre-exist and create. """
          err = None
          if not self._faces_dir:
              err = "ERROR: Output faces folder not provided."
          elif not os.path.isdir(self._faces_dir):
keep keep keep keep replace keep keep keep keep keep
 Alignments tool - Replace 'extract-large' with 'min-size' 
tools/alignments/jobs.py