              Frame is either an array, or the pre-encoded output from the writer's pre-encode
              function (if it has one)
  
          """
          logger.trace("Patching image: '%s'", predicted["filename"])
          frame_size = (predicted["image"].shape[1], predicted["image"].shape[0])
          new_image, background = self._get_new_image(predicted, frame_size)
          patched_face = self._post_warp_adjustments(background, new_image)
          patched_face = self._scale_image(patched_face)
          patched_face *= 255.0
          patched_face = np.rint(patched_face,
 
</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     def _get_new_image(self, predicted, frame_size):
 </s> add     def _get_new_image(self,
                       predicted: "ConvertItem",
                       frame_size: Tuple[int, int]) -> Tuple[np.ndarray, np.ndarray]: </s> remove     def pre_encode(self):
 </s> add     def pre_encode(self) -> Optional[Callable[[np.ndarray], List[bytes]]]: </s> remove         retval = None if test is None else self._writer.pre_encode
 </s> add         retval: Optional[Callable[[np.ndarray],
                                  List[bytes]]] = None if test is None else self._writer.pre_encode </s> remove         retval = "copy"
 </s> add         retval: Optional[str] = "copy"
        logger.trace("Patching image: '%s'", predicted.inbound.filename)  # type: ignore
        frame_size = (predicted.inbound.image.shape[1], predicted.inbound.image.shape[0])
              Frame is either an array, or the pre-encoded output from the writer's pre-encode
              function (if it has one)
  
          """
        logger.trace("Patching image: '%s'", predicted.inbound.filename)  # type: ignore
        frame_size = (predicted.inbound.image.shape[1], predicted.inbound.image.shape[0])
        logger.trace("Patching image: '%s'", predicted.inbound.filename)  # type: ignore
        frame_size = (predicted.inbound.image.shape[1], predicted.inbound.image.shape[0])
          new_image, background = self._get_new_image(predicted, frame_size)
          patched_face = self._post_warp_adjustments(background, new_image)
          patched_face = self._scale_image(patched_face)
          patched_face *= 255.0
          patched_face = np.rint(patched_face,
keep keep keep keep replace 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