Aug-21-2018, 03:23 PM
I am writing this program to generate a line that will engrave on a lazer. Currently it is generating an image that is a JPG. This will work with my laser but it will raster engrave instead of cut all the way through, this is because it contains pixels. I need my image to be a line art, not pixels, so that it will cut all the way through. How can I convert my JPG to line art or save the image as line art from the start?
image1 = Image.new("RGB", (Width, Height), white) draw = ImageDraw.Draw(image1) draw.line([x+2, z1+2, x+3, z1+3], self.color.get(), int(0.001)) name = filedialog.asksaveasfile(defaultextension=".jpg", filetypes=(("Image", "*.jpg"), ("PNG", "*.png"))) if name != "None": image1.save(name)