Delete get_file.py

This commit is contained in:
Sarah 2022-09-09 21:44:10 +01:00
parent 573c1cd990
commit ead6655b7b
1 changed files with 0 additions and 17 deletions

View File

@ -1,17 +0,0 @@
import base64
from svglib.svglib import svg2rlg
from reportlab.graphics import renderPDF, renderPM
import cairosvg
file = "vcinema_map.svg"
import pyvips
image = pyvips.Image.new_from_file(file)
tn = image.thumbnail_image(1000, crop=pyvips.Interesting.ALL)
img_buffer = tn.write_to_buffer(".png")
with open("b.png", "wb") as f:
f.write(img_buffer)