      def convert_colorspace(self, new_face, to_bgr=False):
          """ Convert colorspace based on mode or back to bgr """
          mode = self.config["colorspace"].lower()
          colorspace = "YCrCb" if mode == "ycrcb" else mode.upper()
          conversion = "{}2BGR".format(colorspace) if to_bgr else "BGR2{}".format(colorspace)
          image = cv2.cvtColor(new_face.astype("uint8"),  # pylint: disable=no-member
                               getattr(cv2, "COLOR_{}".format(conversion))).astype("float32") / 255.0
          return image
 
</s> remove                              getattr(cv2, "COLOR_{}".format(conversion))).astype("float32") / 255.0
 </s> add                              getattr(cv2, f"COLOR_{conversion}")).astype("float32") / 255.0 </s> remove             args = (cv2.IMWRITE_JPEG_QUALITY,  # pylint: disable=no-member
 </s> add             args = (cv2.IMWRITE_JPEG_QUALITY, </s> remove         logger.trace("new_face shape: %s, predicted_mask shape: %s", new_face.shape,
                     predicted_mask.shape if predicted_mask is not None else None)
        old_face = reference_face.face[..., :3] / 255.0
 </s> add         logger.trace("new_face shape: %s, predicted_mask shape: %s",  # type: ignore
                     new_face.shape, predicted_mask.shape if predicted_mask is not None else None)
        old_face = cast(np.ndarray, reference_face.face)[..., :3] / 255.0 </s> remove             if isinstance(items, dict):
                items = [items]
 </s> add             items = inbound if isinstance(inbound, list) else [inbound] </s> remove             retval.append(cv2.imencode(self._extension,  # pylint: disable=no-member
 </s> add             retval.append(cv2.imencode(self._extension,
        conversion = f"{colorspace}2BGR" if to_bgr else f"BGR2{colorspace}"
      def convert_colorspace(self, new_face, to_bgr=False):
          """ Convert colorspace based on mode or back to bgr """
          mode = self.config["colorspace"].lower()
          colorspace = "YCrCb" if mode == "ycrcb" else mode.upper()
        conversion = f"{colorspace}2BGR" if to_bgr else f"BGR2{colorspace}"
          image = cv2.cvtColor(new_face.astype("uint8"),  # pylint: disable=no-member
                               getattr(cv2, "COLOR_{}".format(conversion))).astype("float32") / 255.0
          return image
keep keep keep keep replace 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 
plugins/convert/color/manual_balance.py