MCPcopy Create free account
hub / github.com/KingFuRong/pythonSpider / base64_to_image

Function base64_to_image

Utils/tools.py:62–65  ·  view source on GitHub ↗
(base64_str, image_path)

Source from the content-addressed store, hash-verified

60
61
62def base64_to_image(base64_str, image_path):
63 img_data = base64.b64decode(base64_str)
64 with open(image_path, 'wb') as f:
65 f.write(img_data)
66
67
68def __ease_out_expo(sep):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected