def rasterize_wmf(self, name): from calibre.utils.wmf.parse import wmf_unwrap with open(name, 'rb') as f: data = f.read() data = wmf_unwrap(data) name = name.replace('.wmf', '.png') with open(name, 'wb') as f: f.write(data) return name
def rasterize_wmf(self, name): from calibre.utils.wmf.parse import wmf_unwrap with open(name, 'rb') as f: data = f.read() data = wmf_unwrap(data) name = name.replace('.wmf', '.png') with open(name, 'wb') as f: f.write(data) return name