-
Notifications
You must be signed in to change notification settings - Fork 185
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
panic occurs in the GetImageBlob function #308
Comments
Do you happen to have a reproduction that you could provide? It may be the case that we need to check Getlasterror before we try and use the results. You could also set the env var https://imagemagick.org/script/command-line-options.php#debug |
I was able to fix it by adding a check for C API ImageMagick errors, before calling our conversions. |
Tagged v2.6.4 and v3.5.3 |
I'm using gopkg.in/gographics/imagick.v2 v2.6.3 to convert pdf to jpg. In line "ret := C.GoBytes(unsafe.Pointer(csblob), C.int(clen))", it reports a panic. Is there anything to check csblob or clen is valid, or how to fix it
The text was updated successfully, but these errors were encountered: