              size = (self._display_dims[0], max(1, int(image.shape[0] * scale)))
          else:
              scale = self._display_dims[1] / float(image.shape[0])
              size = (max(1, int(image.shape[1] * scale)), self._display_dims[1])
          logger.trace("scale: %s, size: %s", scale, size)
          return size
  
      def _build_faces_image(self):
          """ Compile the source and destination rows of the preview image. """
          logger.trace("Building Faces Image")
 
</s> remove     def _build_faces_image(self):
 </s> add     def _build_faces_image(self) -> None: </s> remove         logger.trace("Building Faces Image")
 </s> add         logger.trace("Building Faces Image")  # type: ignore </s> remove     def update_tk_image(self):
 </s> add     def update_tk_image(self) -> None: </s> remove     def _get_io_sizes(self):
 </s> add     def _get_io_sizes(self) -> Dict[str, int]: </s> remove         img = Image.fromarray(img)
        img = img.resize(size, Image.ANTIALIAS)
        self._tk_image = ImageTk.PhotoImage(img)
 </s> add         pilimg = Image.fromarray(img)
        pilimg = pilimg.resize(size, Image.ANTIALIAS)
        self._tk_image = ImageTk.PhotoImage(pilimg)
        logger.trace("scale: %s, size: %s", scale, size)  # type: ignore
              size = (self._display_dims[0], max(1, int(image.shape[0] * scale)))
          else:
              scale = self._display_dims[1] / float(image.shape[0])
              size = (max(1, int(image.shape[1] * scale)), self._display_dims[1])
        logger.trace("scale: %s, size: %s", scale, size)  # type: ignore
          return size
  
      def _build_faces_image(self):
          """ Compile the source and destination rows of the preview image. """
          logger.trace("Building Faces Image")
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 
tools/preview/preview.py