more
This commit is contained in:
parent
b708e08ff1
commit
129458ea95
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue