Skip to content

Commit d7a960b

Browse files
committed
Update 0000.py
1 parent 9be2e59 commit d7a960b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

razzl/0000.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def draw_number(path = '/root/Desktop/1.jpg',num = 4):
1212
size = im.size#get the size of the picture
1313
fontsize = size[0]/4
1414
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
15+
font = ImageFont.truetype('/usr/share/fonts/dejavu/DejVuSans.ttf',size[0]/4)#define the font and size of the number
1616
draw.text((3*fontsize,0),str(num),(255, 0, 0),font)#draw it
1717
im.save('/root/Desktop/2.jpg')#save
1818
draw_number()

0 commit comments

Comments
 (0)