From da3b95065b2ca9c7c5b3180750ad5c0d2e92b3d0 Mon Sep 17 00:00:00 2001 From: Sarah Date: Fri, 9 Sep 2022 21:31:26 +0100 Subject: [PATCH] add test script --- get_file.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 get_file.py diff --git a/get_file.py b/get_file.py new file mode 100644 index 0000000..9dcd496 --- /dev/null +++ b/get_file.py @@ -0,0 +1,14 @@ +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) + +tn.write_to_file("x.png") \ No newline at end of file