Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ImageIntRatio(ImageSize):
- def __init__(self, width, height):
- super(ImageIntRatio, self).__init__(width, height)
- def from_string(self, s):
- width, height = s.split('/')
- return ImageIntRatio(int(width), int(height))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement