-
Notifications
You must be signed in to change notification settings - Fork 19
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
Question: Dynamic image to file generates empty file without errors or warnings. #8
Comments
Hi Duncan, thanks for using Selene! I don't have the SANE library or a suitable device set up, so I can't reproduce your exact code right now. But could you check a couple of things for me? I suspect I know where the problem lies. Please check the output of the problematic
By design, the written image is only valid if Ideally, this problem should be signaled via a message of error type. Could you please check that this message is emitted? If that is indeed the case, the easiest fix would be to simply add this information at creation time of the dynamic image:
Please let me know if this resolves the issue, or not. |
That worked perfectly, thanks very much! The problem was indeed "Cannot determine JPEG color space from pixel format of image data". |
You're welcome - great to hear the issue is resolved! |
I was experimenting with wrapping the SANE library and everything worked great; other than writing to a jpeg.
The "doesn't work" section in the code below produces an empty file. I took a look at the tests and saw the conversion to a typed image and then a typed image view, gave it a try and it worked. Just wondering if I missed something/if the library should give some sort of warning for the way I tried to use the file io.
The text was updated successfully, but these errors were encountered: