code: func FormatFromFilename(filename string) (Format, error) {
  	ext := filepath.Ext(filename)
  	return FormatFromExtension(ext)
  }
docs: // FormatFromFilename parses image format from filename:
  // "jpg" (or "jpeg"), "png", "gif", "tif" (or "tiff") and "bmp" are supported.