def convert_iiif_width(uri, width="full"):
    """ Utility to convert IIIF to image URI with given width or "full" """
    uri_end = uri.split("//")[1].split("/")
    uri_end[4] = ("full" if width == "full" else str(width) + ",")

    return "https://" + "/".join(uri_end)