I am trying to draw a line in a project where I tag some images. Here is my code :
header_img = Image.open("1.jpg")
header1_img = header_img.resize((610, 320), Image.ANTIALIAS)
draw = ImageDraw.Draw(header1_img)
draw.line(((620, 100), (500, -30)), fill=(23,53,177,255), width=30)
header1_img.save("2.jpg", subsampling=0, quality=100)
This is the result
As you can see the line isn't smooth at all. How to do it properly ?