Re: Issue with GM through JNI
Tianyu Lang <[email protected]>
| Newsgroups | gmane.comp.video.graphicsmagick.help |
|---|---|
| Message-ID | <CABR2W49hs0rjGyJALFT-fPnK9UneBFXsqXVXHtmAhot4UDjfKA@mail.gmail.com> |
Hi Bob, Thanks for the super quick reply. nullptr is basically the C++ version of NULL and it is not a Java/JNI specific thing, so I don't think it could cause a huge problem. Additionally. I have tried compiling my JNI wrapper as C (which uses NULL) instead of C++ and it has the same problem. The passed argument could be an issue. My OS is Ubuntu 14.04.5 LTS x86_64 GNU/Linux. For testing purposes, what should I pass in as the argument for InitializeMagick just to be safe? Should I pass in the path for libGraphicsMagickWand.so.2, for example /usr/local/lib/ libGraphicsMagickWand.so.2? Let me try the "export MAGICK_DEBUG=configure" and get back to you real quick. Also, I have a question about the GM CLI tool. One of the biggest problem for me about the CLI tool is that it has to write to disk, which is very slow. I did a small test and writing to disk is doubling the processing time. So is there a way where I can pipe in images and have GM pipe out the result so I can bypass the disk? If I can do that, I would not need the JNI stuff. Plus, I have not encountered any problems running GM CLI tool as a separate process with gm4java. Thank you so much Bob! Tianyu ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Graphicsmagick-help mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help