We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d114064 commit e5318aaCopy full SHA for e5318aa
IMAGES & PHOTO SCRIPTS/Image-Inverter/inverter.py
@@ -1,14 +1,15 @@
1
#!/usr/bin/env python3
2
3
-from PIL import Image, ImageOps
+from PIL import Image
4
+from PIL import ImageOps
5
import sys, os
6
7
def main():
8
if len(sys.argv) == 1:
9
print("Please provide files to operate on!")
10
sys.exit(1)
11
- for file in sys.argv:
12
+ for file in sys.argv: # TODO: remove the sys.argv[0] from the loop! use index i and start from 1
13
# TODO: add a check that the files are jpg
14
file_name = os.path.splitext(file)
15
with Image.open(file) as image:
0 commit comments