qgis_deployment_toolbelt.shortcuts.icon_converter module

Convert PNGF file(s) to multisizes ico.

Widely inspired from:

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