From 57bb5c9efd3822af90f1ac0566321a65149df16d Mon Sep 17 00:00:00 2001 From: leyghisbb Date: Sun, 30 Aug 2020 11:40:45 +0200 Subject: [PATCH] removed unrequired function from pixel2svg --- extensions/fablabchemnitz_pixel2svg.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/extensions/fablabchemnitz_pixel2svg.py b/extensions/fablabchemnitz_pixel2svg.py index e633bf29..c4a3ff55 100644 --- a/extensions/fablabchemnitz_pixel2svg.py +++ b/extensions/fablabchemnitz_pixel2svg.py @@ -88,17 +88,6 @@ class Pixel2SVG(inkex.Effect): if (os.path.isfile(path)): return path - def getImage(self, node): - image_element=self.svg.find('.//{http://www.w3.org/2000/svg}image') - image_string=image_element.get('{http://www.w3.org/1999/xlink}href') - #find comma position - i=0 - while i<40: - if image_string[i]==',': - break - i=i+1 - return Image.open(BytesIO(base64.b64decode(image_string[i+1:len(image_string)]))) - def drawFilledRect(self, parent, svgpx): """ Draw rect based on ((x, y), (width,height), ((r,g,b),a)), add to parent