Skip to content
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

How to choose ImageMagick version #436

Closed
DannyAziz opened this issue Sep 3, 2019 · 1 comment
Closed

How to choose ImageMagick version #436

DannyAziz opened this issue Sep 3, 2019 · 1 comment

Comments

@DannyAziz
Copy link

@DannyAziz DannyAziz commented Sep 3, 2019

I'm trying to run Wand on AWS lambda, AWS lambda comes built-in with a version of Imagemagick but that version doesn't have the delegates I need

I've figured out how to get a different version of ImageMagick onto the system but the built-in one is still available at /usr/bin/

I've set MAGICK_HOME to the path of the new version but Wand still seems to be using the built-in version

library_paths() returns this:


[
        [
            "/opt/bin/lib/libMagickWand.so",
            "/opt/bin/lib/libMagickWand.so"
        ],
        [
            "libMagickWand.so.5",
            "libMagickWand.so.5"
        ],
        [
            "/opt/bin/lib/libMagickWandHDRI.so",
            "/opt/bin/lib/libMagickWandHDRI.so"
        ],
        [
            null,
            null
        ],
        [
            "/opt/bin/lib/libMagickWandHDRI-2.so",
            "/opt/bin/lib/libMagickWandHDRI-2.so"
        ],
        [
            null,
            null
        ],
        [
            "/opt/bin/lib/libMagickWand-7.so",
            "/opt/bin/lib/libMagickWand-7.so"
        ],
        [
            null,
            null
        ],
        [
            "/opt/bin/lib/libMagickWand-7HDRI.so",
            "/opt/bin/lib/libMagickWand-7HDRI.so"
        ],
        [
            null,
            null
        ],
        [
            "/opt/bin/lib/libMagickWand-7HDRI-2.so",
            "/opt/bin/lib/libMagickWand-7HDRI-2.so"
        ],
        [
            null,
            null
        ],
        [
            "/opt/bin/lib/libMagickWand-7.Q8.so",
            "/opt/bin/lib/libMagickWand-7.Q8.so"
        ],
        [
            null,
            null
        ],
        [
            "/opt/bin/lib/libMagickWand-7.Q8HDRI.so",
            "/opt/bin/lib/libMagickWand-7.Q8HDRI.so"
        ],
        [
            null,
            null
        ],
        [
            "/opt/bin/lib/libMagickWand-7.Q8HDRI-2.so",
            "/opt/bin/lib/libMagickWand-7.Q8HDRI-2.so"
        ],
        [
            null,
            null
        ],
        [
            "/opt/bin/lib/libMagickWand-7.Q16.so",
            "/opt/bin/lib/libMagickWand-7.Q16.so"
        ],
        [
            null,
            null
        ],
        [
            "/opt/bin/lib/libMagickWand-7.Q16HDRI.so",
            "/opt/bin/lib/libMagickWand-7.Q16HDRI.so"
        ],
        [
            null,
            null
        ],
        [
            "/opt/bin/lib/libMagickWand-7.Q16HDRI-2.so",
            "/opt/bin/lib/libMagickWand-7.Q16HDRI-2.so"
        ],
        [
            null,
            null
        ],
        [
            "/opt/bin/lib/libMagickWand-6.so",
            "/opt/bin/lib/libMagickWand-6.so"
        ],
        [
            null,
            null
        ],
        [
            "/opt/bin/lib/libMagickWand-6HDRI.so",
            "/opt/bin/lib/libMagickWand-6HDRI.so"
        ],
        [
            null,
            null
        ],
        [
            "/opt/bin/lib/libMagickWand-6HDRI-2.so",
            "/opt/bin/lib/libMagickWand-6HDRI-2.so"
        ],
        [
            null,
            null
        ],
        [
            "/opt/bin/lib/libMagickWand-Q16.so",
            "/opt/bin/lib/libMagickWand-Q16.so"
        ],
        [
            null,
            null
        ],
        [
            "/opt/bin/lib/libMagickWand-Q16HDRI.so",
            "/opt/bin/lib/libMagickWand-Q16HDRI.so"
        ],
        [
            null,
            null
        ],
        [
            "/opt/bin/lib/libMagickWand-Q16HDRI-2.so",
            "/opt/bin/lib/libMagickWand-Q16HDRI-2.so"
        ],
        [
            null,
            null
        ],
        [
            "/opt/bin/lib/libMagickWand-Q8.so",
            "/opt/bin/lib/libMagickWand-Q8.so"
        ],
        [
            null,
            null
        ],
        [
            "/opt/bin/lib/libMagickWand-Q8HDRI.so",
            "/opt/bin/lib/libMagickWand-Q8HDRI.so"
        ],
        [
            null,
            null
        ],
        [
            "/opt/bin/lib/libMagickWand-Q8HDRI-2.so",
            "/opt/bin/lib/libMagickWand-Q8HDRI-2.so"
        ],
        [
            null,
            null
        ],
        [
            "/opt/bin/lib/libMagickWand-6.Q16.so",
            "/opt/bin/lib/libMagickWand-6.Q16.so"
        ],
        [
            null,
            null
        ],
        [
            "/opt/bin/lib/libMagickWand-6.Q16HDRI.so",
            "/opt/bin/lib/libMagickWand-6.Q16HDRI.so"
        ],
        [
            null,
            null
        ],
        [
            "/opt/bin/lib/libMagickWand-6.Q16HDRI-2.so",
            "/opt/bin/lib/libMagickWand-6.Q16HDRI-2.so"
        ],
        [
            null,
            null
        ]

Without MAGICK_HOME being set, it only returns

[
            "libMagickWand.so.5",
            "libMagickWand.so.5"
],

I'm wondering if there is a way to tell Wand what version of ImageMagick to use?

@emcconville

This comment has been minimized.

Copy link
Owner

@emcconville emcconville commented Sep 4, 2019

Try again with the latest 0.5.7. There was a library-ordering revision that should honer MAGICK_HOME before system paths.

However, I believe there would be a benefit for users to specify ImageMagick's version suffix. Perhaps another environmental variable "WAND_MAGICK_LIBRARY_SUFFIX", or something that can be set outside of a codechange.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.