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)
def main ( input_file , output , format ) : try : process_image ( input_file , subfolder = output , ext = format ) except Exception as e : sys . exit ( e )
Converts an image file to a Leaflet map.