geotribu_cli.images.optim_tinify module¶ geotribu_cli.images.optim_tinify.optimize_with_tinify(image_path_or_url, output_folder, image_type='body')¶ Optimize image using Tinify API (tinypng.com). Paramètres: image_path_or_url (Union[str, Path]) – path or URL to the image to optimize image_type (str) – type of image. Defaults to body. Type renvoyé: Optional[Path] Renvoie: path to the optimized image geotribu_cli.images.optim_tinify.tinify_check_api_limit()¶ Check the API limit and log it. Type renvoyé: int Renvoie: compressions already done this month