              patched_face = self._writer_pre_encode(patched_face)
          logger.trace("Patched image: '%s'", predicted["filename"])
          return patched_face
  
      def _get_new_image(self, predicted, frame_size):
          """ Get the new face from the predictor and apply pre-warp manipulations.
  
          Applies any requested adjustments to the raw output of the Faceswap model
          before transforming the image into the target frame.
  
 
</s> remove         if self._writer_pre_encode is not None:
            patched_face = self._writer_pre_encode(patched_face)
        logger.trace("Patched image: '%s'", predicted["filename"])
        return patched_face
 </s> add         if self._writer_pre_encode is None:
            retval: Union[np.ndarray, List[bytes]] = patched_face
        else:
            retval = self._writer_pre_encode(patched_face)
        logger.trace("Patched image: '%s'", predicted.inbound.filename)  # type: ignore
        return retval </s> remove         predicted: dict
 </s> add         predicted: :class:`~scripts.convert.ConvertItem` </s> remove     def _pre_warp_adjustments(self, new_face, detected_face, reference_face, predicted_mask):
 </s> add     def _pre_warp_adjustments(self,
                              new_face: np.ndarray,
                              detected_face: "DetectedFace",
                              reference_face: "AlignedFace",
                              predicted_mask: Optional[np.ndarray]) -> np.ndarray: </s> remove         logger.trace("Patching image: '%s'", predicted["filename"])
        frame_size = (predicted["image"].shape[1], predicted["image"].shape[0])
 </s> add         logger.trace("Patching image: '%s'", predicted.inbound.filename)  # type: ignore
        frame_size = (predicted.inbound.image.shape[1], predicted.inbound.image.shape[0]) </s> remove         logger.trace("Got filename: '%s'. (placeholders: %s)",
                     predicted["filename"], placeholder.shape)
 </s> add         logger.trace("Got filename: '%s'. (placeholders: %s)",  # type: ignore
                     predicted.inbound.filename, placeholder.shape)
    def _get_new_image(self,
                       predicted: "ConvertItem",
                       frame_size: Tuple[int, int]) -> Tuple[np.ndarray, np.ndarray]:
              patched_face = self._writer_pre_encode(patched_face)
          logger.trace("Patched image: '%s'", predicted["filename"])
          return patched_face
  
    def _get_new_image(self,
                       predicted: "ConvertItem",
                       frame_size: Tuple[int, int]) -> Tuple[np.ndarray, np.ndarray]:
          """ Get the new face from the predictor and apply pre-warp manipulations.
  
          Applies any requested adjustments to the raw output of the Faceswap model
          before transforming the image into the target frame.
  
keep keep keep keep replace keep keep keep keep keep
 Bugfix: convert - Gif Writer
  - Fix non-launch error on Gif Writer
  - convert plugins - linting
  - convert/fs_media/preview/queue_manager - typing
  - Change convert items from dict to Dataclass 
lib/convert.py