add: thumb dimension is a global
This commit is contained in:
@ -60,7 +60,7 @@ class Picture():
|
||||
|
||||
def gen_thumb(self):
|
||||
im = Image.open(self._large.get_absolute_path())
|
||||
im.thumbnail((500,500))
|
||||
im.thumbnail(config.THUMB_DIMENSION)
|
||||
im.save(self._thumb.get_absolute_path(), "JPEG")
|
||||
|
||||
def gen_small(self):
|
||||
|
Reference in New Issue
Block a user