                      self.previewtrain[name] = None
  
      def get_current_size(self, name):
          """ Return the size of the currently displayed image """
          logger.trace("Getting size: '%s'", name)
          if not self.previewtrain.get(name, None):
              return None
          img = self.previewtrain[name][1]
          if not img:
              return None
 
</s> remove         logger.trace("Got size: (name: '%s', width: '%s', height: '%s')",
 </s> add         logger.debug("Got size: (name: '%s', width: '%s', height: '%s')", </s> remove         logger.trace("Getting images: '%s'", imgpath)
 </s> add         logger.debug("Getting images: '%s'", imgpath) </s> remove         filenames, samples = self.get_preview_samples(imagefiles, num_images, thumbnail_size)
        show_image = self.place_previews(samples, frame_dims)
        logger.trace("Displaying preview: '%s'", filenames)
 </s> add         self.load_images_to_cache(imagefiles, frame_dims, thumbnail_size)
        if imagefiles == [gui_preview]:
            # Delete the preview image so that the main scripts know to output another
            logger.debug("Deleting preview image")
            os.remove(imagefiles[0])
        show_image = self.place_previews(frame_dims)
        logger.debug("Displaying preview: '%s'", self.previewcache["filenames"]) </s> remove         logger.trace("Loading Training preview images")
 </s> add         logger.debug("Loading Training preview images") </s> remove         logger.trace("Image files: %s", files)
 </s> add         logger.debug("Image files: %s", files)
        logger.debug("Getting size: '%s'", name)
                      self.previewtrain[name] = None
  
      def get_current_size(self, name):
          """ Return the size of the currently displayed image """
        logger.debug("Getting size: '%s'", name)
          if not self.previewtrain.get(name, None):
              return None
          img = self.previewtrain[name][1]
          if not img:
              return None
keep keep keep keep replace keep keep keep keep keep
 GUI: Preview for convert

Display preview when outputting to a stream container (e.g. video, gif) 
lib/gui/utils.py