Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def open(path):
- new = Image.open(path)
- return new
- def save(img, path):
- img.save(path, "jpg")
- def makenew(a, b):
- img = Image.new("RGB", (a, b), "white")
- return img
- def pixels(im, c, d):
- height, width = im.size
- if c > height or j > width:
- return None
- pix = im.pixels((c, d))
- return pix
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement