-
Notifications
You must be signed in to change notification settings - Fork 200
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
Importing wand takes 700ms on Ubuntu (and can't be avoided via environment) #556
Comments
I'm open to suggestions. Try NOT setting |
While checking that I found it interesting to note that the
It was surprising to me that the library is found while checking the So the issue for us is that |
That's ABI working at its best.
I good time to consider migrating to ImageMagick-7. If performance is an important feature, I highly recommend ImageMagick-7's Q8 without HDRI. I know it's crummy to hear that, but Wand must exhaust ImageMagick-7 & support for High Dynamic Range images before attempting ImageMagick-6. All that said, I still believe a "short-cut" environment variable is a good idea. |
Imagemagick 7.x hasn't made it into Looks like progress is being made though so maybe 22.04 will get it. |
In Ubuntu 18.04 LTS, the
libmagickwand-6.q16-3
package installs the wand libraries at:/usr/lib/x86_64-linux-gnu/libMagickCore-6.Q16.so.3
/usr/lib/x86_64-linux-gnu/libMagickWand-6.Q16.so.3
import wand
finds these, but it takes ~700ms to do because it runsctypes.find_library
(apparently several times?)Looking at the source code, it seemed like we could avoid this by setting
MAGICK_HOME
andWAND_MAGICK_LIBRARY_SUFFIX
in our containers.However, this doesn't actually help because wand hardcodes the
.so
extension, and.so.3
doesn't match.Perhaps wand should handle a couple of environment variables containing the full paths to the libraries?
The text was updated successfully, but these errors were encountered: