f
This commit is contained in:
parent
4fad39c5bd
commit
e85ab1f3fe
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue