Files
MarkdownLivePreview/resources/convertresources.py
Mathieu PATUREL 2785df74ce Format everything with black
Follow the readme's instruction haha
2019-11-16 09:57:45 +11:00

10 lines
324 B
Python

""" A small script to convert the images into base64 data """
from base64 import b64encode
with open("404.png", "rb") as png, open("404.base64", "wb") as base64:
base64.write(b64encode(png.read()))
with open("loading.png", "rb") as png, open("loading.base64", "wb") as base64:
base64.write(b64encode(png.read()))