qgis_deployment_toolbelt.shortcuts.icon_converter module¶
Convert PNGF file(s) to multisizes ico.
Widely inspired from:
png2ico (https://github.com/dbconfig/png2ico), MIT
PyInstaller (https://github.com/pyinstaller/pyinstaller/blob/c7ff86f871d064110452562ed87c4fb95d2a718e/PyInstaller/building/icon.py), GPL2 or later
- qgis_deployment_toolbelt.shortcuts.icon_converter.png2ico(in_png_path: Path, out_ico_path: Path | None = None) Path ¶
Convert a PNG file to an multisize ICO.
- Parameters:
in_png_path (Path) – input PNG image file path.
out_ico_path (Path | None) – output ico file path, optional.
- Raises:
error – if input file does not exist or something goes wrong during conversion.
- Returns:
output ico file path
- Return type:
Path