svg2rlg converting svg to png only part of the image with percentage size
svg2rlg converting svg to png only part of the image with percentage size Question: My svg image: https://pastebin.com/raw/EeptY1C8 My code: from svglib.svglib import svg2rlg from reportlab.graphics import renderPM drawing = svg2rlg("qr_code.svg") renderPM.drawToFile(drawing, "temp.png", fmt="PNG") from tkinter import * tk = Tk() from PIL import Image, ImageTk img = Image.open(‘temp.png’) pimg = ImageTk.PhotoImage(img) size = img.size …