docs: def main(input_file, output, format):
      """Converts an image file to a Leaflet map."""
  
      try:
          process_image(input_file, subfolder=output, ext=format)
      except Exception as e:
          sys.exit(e)