Skip to content

Commit

Permalink
add 0188, improved crop.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TenteEEEE committed Jun 6, 2019
1 parent 6a697bd commit 52842c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crop.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
mask = Image.open('./mask/mask.png')

panties = os.listdir(fdir)
dreams = os.listdir('./dream/')
start_num = len(dreams)+1
for fname in panties:
# img = Image.open('./data/Quiche_body.png')
img = Image.open(fdir+fname)
Expand All @@ -13,4 +15,6 @@
masked = Image.composite(img, zeroimg, mask)
masked.putalpha(mask)
masked = masked.crop((1018,828,1646,1235))
masked.save('./'+fname)
masked.save('./dream/%04d.png'%(start_num))
print('Saved ./dream/%04d.png'%(start_num))
start_num += 1
Binary file added dream/0188.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 52842c2

Please sign in to comment.