Advertisement
Xlorddx

Untitled

Aug 16th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. from PIL import Image
  2. img=Image.open('56.jpg')
  3. pixels = img.load()
  4. maxLoad = img.width * img.height
  5. onePer = maxLoad / 100
  6. k = 0
  7. for i in range(img.width):
  8.     for j in range(img.height):
  9.         if(i*j>k*10*onePer):
  10.             print("Обработано", k*10, "%" )
  11.             k+=1
  12.         pixels[img.width-i-1, j] = pixels[i,j]
  13. img.show()
  14. img.save('1.jpg')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement