Skip to content

Commit

Permalink
Adjust bottom text offset based on size
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Jun 15, 2015
1 parent b5cafaa commit df7d084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memegen/domain/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def make_meme(topString, bottomString, filename):

# find bottom centered position for bottom text
bottomTextPositionX = (imageSize[0] / 2) - (bottomTextSize[0] / 2)
bottomTextPositionY = imageSize[1] - bottomTextSize[1]
bottomTextPositionY = imageSize[1] - bottomTextSize[1] - bottomTextSize[1] / 4
bottomTextPosition = (bottomTextPositionX, bottomTextPositionY)

draw = ImageDraw.Draw(img)
Expand Down

0 comments on commit df7d084

Please sign in to comment.