Commit 1fddc05d authored by Gijs van der Voort's avatar Gijs van der Voort

Merge branch 'master' of http://github.com/taddeus/licenseplates

parents 84d501fa 38415fb9
from PIL import Image
class NormalizedImage:
DEFAULT_SIZE = (100, 200)
def __init__(self, image, size):
self.letter = image
if size:
self.size = size
else:
self.size = self.DEFAULT_SIZE
self.add_padding()
self.resize()
def add_padding(self):
pass
def resize(self):
return self.letter.resize(self.size, Image.NEAREST)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment