We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9be2e59 commit d7a960bCopy full SHA for d7a960b
razzl/0000.py
@@ -12,7 +12,7 @@ def draw_number(path = '/root/Desktop/1.jpg',num = 4):
12
size = im.size#get the size of the picture
13
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
+ font = ImageFont.truetype('/usr/share/fonts/dejavu/DejVuSans.ttf',size[0]/4)#define the font and size of the number
16
draw.text((3*fontsize,0),str(num),(255, 0, 0),font)#draw it
17
im.save('/root/Desktop/2.jpg')#save
18
draw_number()
0 commit comments