Skip to content

Commit 9be2e59

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

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
@@ -10,7 +10,7 @@
1010
def draw_number(path = '/root/Desktop/1.jpg',num = 4):
1111
im = Image.open(path)#open the picture
1212
size = im.size#get the size of the picture
13-
fontsize = size[0]/4a
13+
fontsize = size[0]/4
1414
draw = ImageDraw.Draw(im)#the ImageDraw.Draw will rerturn a object then you can draw it
1515
font = ImageFont.truetype('/usr/share/fonts/dejavu/DejVuSans.ttf',size[0]/4)#define the font and sieze of the number
1616
draw.text((3*fontsize,0),str(num),(255, 0, 0),font)#draw it

0 commit comments

Comments
 (0)