code: def get_thumb(settings, filename):
      
  
      path, filen = os.path.split(filename)
      name, ext = os.path.splitext(filen)
  
      if ext.lower() in settings['video_extensions']:
          ext = '.jpg'
      return join(path, settings['thumb_dir'], settings['thumb_prefix'] +
                  name + settings['thumb_suffix'] + ext)
docs: Return the path to the thumb.
  
      examples:
      >>> default_settings = create_settings()
      >>> get_thumb(default_settings, "bar/foo.jpg")
      "bar/thumbnails/foo.jpg"
      >>> get_thumb(default_settings, "bar/foo.png")
      "bar/thumbnails/foo.png"
  
      for videos, it returns a jpg file:
      >>> get_thumb(default_settings, "bar/foo.webm")
      "bar/thumbnails/foo.jpg"