Make Image.unframe() return a new image, not a SubImage.
This is to make line and letter absolute positions relative to the page, not to the original framed image.
This commit is contained in:
parent
b5194ca018
commit
0ae6f19e60
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ class Image(object):
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def unframe(self, width=2):
|
def unframe(self, width=2):
|
||||||
return self[width:-width,width:-width]
|
return Image(self.data[width:-width,width:-width])
|
||||||
|
|
||||||
def strip(self):
|
def strip(self):
|
||||||
"""Strip top and bottom blank space.
|
"""Strip top and bottom blank space.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue