-
Notifications
You must be signed in to change notification settings - Fork 389
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
pixRead & pixReadWithHint return NULL #699
Comments
You should only use pixReadWithHint() for jpeg compressed image files. See the documentation. I have no trouble reading with 1.83 on linux. |
That is |
I use
|
You're right. I enabled handling rgba in bmp after 1.83. If you build from the github master it will work for you. |
OK, I'm using conan right now, will try when new version is available in Conan. |
@DanBloomberg BTW, is this the correct way to enable exception(or get error)?
|
No, that's a static function that you have modified. See prog/messagetest.c for usage. |
OK, I can use a different name (e.g |
I don't know what you're trying to do. This utility is a messaging system for use when errors occur. |
I'm trying to get error message or get exception from leptonica. those code goes to my code not library. |
By default, all error messages go to stderr, so you should see them. Again, I suggest you look at the Runtime redirection of stderr in utils1.c, and the examples of usage in prog/messagetest.c. One more thing. Leptonica also has an elaborate mechanism for controlling the severity of messages that are output. |
I'm using 1.83.0 with VC2022 on Windows 11.
pixReadWithHint("captcha-001.bmp", IFF_BMP);
returns NULL.captcha-001.zip
The text was updated successfully, but these errors were encountered: