TotallyNotChase / glitch-this

:camera: Glitchify images and GIF - with highly customizable options!
MIT License
1.76k stars 63 forks source link

Fix for filenames with dots in them #1

Closed ojensen5115 closed 4 years ago

ojensen5115 commented 4 years ago

Currently if you try to process a file that has a dot in the filename, the script fails:

ojensen@qenie:~/bin/repos/glitch-this$ python3 glitch_this.py ~/4.1581136753.png 2
Traceback (most recent call last):
  File "glitch_this.py", line 205, in <module>
    img_filename, img_fileex = img_file.split('.')
ValueError: too many values to unpack (expected 2)

This PR fixes it :)

TotallyNotChase commented 4 years ago

Oops, totally forgot about that one, thank you so much!