def pil_getsize(path_in):
    from PIL import Image
    try:
        im = Image.open(util.syspath(path_in))
        return im.size
    except __HOLE__ as exc:
        log.error(u"PIL could not read file {}: {}",
                  util.displayable_path(path_in), exc)
dataset/ETHPy150Open beetbox/beets/beets/util/artresizer.py/pil_getsize