      def resize(self, event):
          """  Resize the image to fit the frame, maintaining aspect ratio """
          logger.trace("Resizing preview image")
          framesize = (event.width, event.height)
          self.display.display_dims = framesize
          self.reload()
  
      def reload(self):
          """ Reload the preview image """
          logger.trace("Reloading preview image")
          self.display.update_tk_image()
 
</s> remove     def resize(self, event):
        """  Resize the image to fit the frame, maintaining aspect ratio """
 </s> add     def _resize(self, event):
        """ Resize the image to fit the frame, maintaining aspect ratio """ </s> remove     def reload(self):
 </s> add     def _reload(self): </s> remove         self.reload()
 </s> add         self._reload() </s> remove         self.display.update_tk_image()
        self.canvas.itemconfig(self.displaycanvas, image=self.display.tk_image)
 </s> add         self._display.update_tk_image()
        self._canvas.itemconfig(self._displaycanvas, image=self._display.tk_image) </s> remove     def get_scale_size(self, image):
        """ Return the scale and size for passed in display image """
        frameratio = float(self.display_dims[0]) / float(self.display_dims[1])
 </s> add     def _get_scale_size(self, image):
        """ Get the size that the full preview image should be resized to fit in the
        display window.

        Parameters
        ----------
        image: :class:`numpy.ndarray`
            The full sized compiled preview image

        Returns
        -------
        tuple
            The (`width`, `height`) that the display image should be sized to fit in the display
            window
        """
        frameratio = float(self._display_dims[0]) / float(self._display_dims[1])
        self._display.set_display_dimensions(framesize)
        self._reload()
      def resize(self, event):
          """  Resize the image to fit the frame, maintaining aspect ratio """
          logger.trace("Resizing preview image")
          framesize = (event.width, event.height)
        self._display.set_display_dimensions(framesize)
        self._reload()
        self._display.set_display_dimensions(framesize)
        self._reload()
  
      def reload(self):
          """ Reload the preview image """
          logger.trace("Reloading preview image")
          self.display.update_tk_image()
keep keep keep keep replace replace keep keep keep keep keep
 Smart Masks to Convert (#957)

- scripts.convert - Use Smart Masks for Convert
    * Make on-the-fly conversion an explicit option

- Move BlurMask to lib.faces_detect

- tools.preview - Fix for smart masks
    * Subclass from tk.Tk
    * Options to lib.gui.control_helper
    *variable cleanup

- lib.logger - Demote more tensorflow deprecation messages

- Documentation:
    * lib.faces_detect.BlurMask
    * plugins.convert.mask
    * lib.convert
    * scripts.convert
    * scripts.fsmedia
    * tools.preview 
tools/preview.py