This commit is contained in:
Ryan Oldenburg 2021-01-27 02:46:00 -06:00
parent 4fad39c5bd
commit e85ab1f3fe

View file

@ -44,7 +44,7 @@ proc writeFile*(image: Image, filePath: string) =
let fileFormat = case splitFile(filePath).ext:
of ".png": ffPng
of ".bmp": ffBmp
of ".jpg",".jpeg": ffJpg
of ".jpg", ".jpeg": ffJpg
else:
raise newException(PixieError, "Unsupported image file extension")
image.writeFile(filePath, fileformat)