mirror of
https://github.com/mon/ifstools.git
synced 2024-11-27 18:40:48 +01:00
Fix bbox bug
This commit is contained in:
parent
06c2b338d2
commit
9004fef5d7
@ -39,6 +39,7 @@ class ImageCanvas(GenericFile):
|
||||
This could be far speedier if it copied raw pixels, but that would
|
||||
take far too much time to write vs using Image inbuilts '''
|
||||
im = Image.new('RGBA', self.img_size)
|
||||
draw = None
|
||||
if self.bbox:
|
||||
draw = ImageDraw.Draw(im)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user