This commit is contained in:
Ryan Oldenburg 2020-11-21 20:05:48 -06:00
parent b708e08ff1
commit 129458ea95

View file

@ -57,6 +57,7 @@ proc writeFile*(image: Image, filePath: string) =
of ".png": ffPng
of ".bmp": ffBmp
of ".jpg": ffJpg
of ".jpeg": ffJpg
else:
raise newException(PixieError, "Unrecognized file extension")
raise newException(PixieError, "Unsupported image file extension")
image.writeFile(filePath, fileformat)