def worker()

in scripts/icon-builder.py [0:0]


def worker(icon):
    """multiprocess resource intensive operations (java subprocess)"""
    # create images without transparency for use with PlantUML sprites
    icon.generate_image(
        Path(f"../dist/{icon.category}"),
        color=True,
        max_target_size=64,
        transparency=False,
    )
    print(f"generating PUML for {icon.source_name}")
    icon.generate_puml(Path(f"../dist/{icon.category}"))
    # Recreate the images with transparency
    icon.generate_image(
        Path(f"../dist/{icon.category}"),
        color=True,
        max_target_size=64,
        transparency=True,
    )
    return