Skip to content

Commit 28ce6de

Browse files
committed
Update 0000.py
1 parent 145e333 commit 28ce6de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

razzl/0000/0000.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
def draw_number(path = '/root/Desktop/1.jpg',num = 4):
1515
im = Image.open(path)#open the picture
1616
size = im.size#get the size of the picture
17-
fontsize = size[0]/4a
17+
fontsize = size[0]/4
1818
draw = ImageDraw.Draw(im)#the ImageDraw.Draw will rerturn a object then you can draw it
19-
font = ImageFont.truetype('/usr/share/fonts/dejavu/DejVuSans.ttf',size[0]/4)#define the font and sieze of the number
19+
font = ImageFont.truetype('/usr/share/fonts/dejavu/DejVuSans.ttf',fontsize)#define the font and size of the number
2020
draw.text((3*fontsize,0),str(num),(255, 0, 0),font)#draw it
2121
im.save('/root/Desktop/2.jpg')#save
2222
draw_number()

0 commit comments

Comments
 (0)