We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3b0528 commit 9be2e59Copy full SHA for 9be2e59
razzl/0000.py
@@ -10,7 +10,7 @@
10
def draw_number(path = '/root/Desktop/1.jpg',num = 4):
11
im = Image.open(path)#open the picture
12
size = im.size#get the size of the picture
13
- fontsize = size[0]/4a
+ fontsize = size[0]/4
14
draw = ImageDraw.Draw(im)#the ImageDraw.Draw will rerturn a object then you can draw it
15
font = ImageFont.truetype('/usr/share/fonts/dejavu/DejVuSans.ttf',size[0]/4)#define the font and sieze of the number
16
draw.text((3*fontsize,0),str(num),(255, 0, 0),font)#draw it
0 commit comments