def _svg_convert_size(size, percent=None):
    """
    Convert svg size to the px version

    :param size: String with the size
    :param percent: String with the percentage, None = 100%
    """
    conversion_table = {'pt': 1.25, 'pc': 15, 'mm': 3.543307, 'cm': 
        35.43307, 'in': 90, 'px': 1}
    factor = 1.0
    if len(size) >= 3:
        if size[-2:] in conversion_table:
            factor = conversion_table[size[-2:]]
            size = size[:-2]
    if percent:
        factor *= float(percent.rstrip('%')) / 100.0
    return round(float(size) * factor)
