import re


def svg_needs_png(fname):
    """
    Check to see if this SVG needs to be represented as a png
    """
    svg = open(fname).read()
    # Detect metafile foreign objects.  These mess up SVG conversion
    return re.search('<v:foreignData .*?v:data="data:metafile', svg)