This is the place for queries that don't fit in any of the other categories.
I have image splited with white lines .
How to cut image into multiple pieces by this lines ?
- Code: Select all
from PIL import Image, ImageOps
mask = Image.open('/root/test/fig2.png').convert('L')
im = Image.open('/root/test/longcat.jpg')
output = ImageOps.fit(im, mask.size, centering=(0.5, 0.5))
Last edited by Mekire
on Mon Oct 28, 2013 10:20 am, edited 1 time in total.
Reason: First post lock.
- Posts: 1
- Joined: Mon Oct 28, 2013 10:03 am
Return to General Coding Help
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], snippsat, W3C [Linkcheck] and 3 guests