-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
saveImage with .png
filename causes assertion failure
#51
Comments
Hm, weird. It's been a while since I tried to save an image to png. I'll take a look at it in a few days. |
Damn, this also runs perfectly fine on my linux machine. :/ |
But it's weird that it fails in Would you be willing to test decoding the image manually on your machine? save it somewhere and then just run the following: import base64
writeFile("test.png", readFile("pngAsBase64.txt").decode) and see if that works flawlessly. It should simply create that fig12 example as |
Running the snippet on the base64 data you provided works fine! |
I ran
again, and I noticed that the webview pops up momentarily with what looks like a complete image rendered before the exceptions I posted before are emitted |
Modifying examples/fig12_save_figure.nim to save a file with the png extension, then running
Running
nim c -r -d:webview --threads:on -d:debug examples/fig12_save_figure.nim
produces
The text was updated successfully, but these errors were encountered: