from pathlib import Path


def get_renderid(fname: Path) -> str:
    """Get the renderid of an image. The render id is the numerical index.
    Eg: 12.rgb.png -> renderid = 12
    """
    return fname.name.split('.')[0]