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 20641b8 commit 6d50f03Copy full SHA for 6d50f03
IMAGES & PHOTO SCRIPTS/Image-Inverter/inverter.py
@@ -20,9 +20,9 @@ def main():
20
file_name = os.path.splitext(file)
21
try:
22
with Image.open(file) as image:
23
- ImageOps.invert(image).save(filename + "_inverted", "JPEG")
+ ImageOps.invert(image).save(file_name + "_inverted", "JPEG")
24
except:
25
- print("Couldn't convert " + filename + "successfully!")
+ print("Couldn't convert " + file_name + "successfully!")
26
i = i + 1
27
28
if __name__ == '__main__':
0 commit comments