Skip to content

Commit 6d50f03

Browse files
committed
Corrected a variable name
1 parent 20641b8 commit 6d50f03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IMAGES & PHOTO SCRIPTS/Image-Inverter/inverter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ def main():
2020
file_name = os.path.splitext(file)
2121
try:
2222
with Image.open(file) as image:
23-
ImageOps.invert(image).save(filename + "_inverted", "JPEG")
23+
ImageOps.invert(image).save(file_name + "_inverted", "JPEG")
2424
except:
25-
print("Couldn't convert " + filename + "successfully!")
25+
print("Couldn't convert " + file_name + "successfully!")
2626
i = i + 1
2727

2828
if __name__ == '__main__':

0 commit comments

Comments
 (0)