docs: def _get_thumbnail_filename(filename, append_text="-thumbnail"):
      """
      Returns a thumbnail version of the file name.
      """
      name, ext = os.path.splitext(filename)
      return ''.join([name, append_text, ext])