• alcacode's avatar
    Fix bug where file extension had an extra '.' under some circumstances · 6dd53ce6
    alcacode authored
    Fix bug where under some circumstances an extra "." was inserted between the file base name and the file extension.
    The bug is triggered when the extension argument is one of "jpg", "jpeg", or "webp", and the image exceeds the format's dimension limit. Then the extension variable is set to ".png", resulting in the fullfn variable to evaluate to a string ending with "..png".
    6dd53ce6
images.py 34.2 KB