ImageMagick suggested compile options

  1. Download ImageMagick source

  2. prereqs

    apt install libpng-dev libwebp-dev librsvg2-dev libgs-dev libperl-dev gcc g++ make
    
  3. build ImageMagick

    ./configure --with-modules --with-gslib --with-perl --with-rsvg --enable-hdri --prefix=$HOME/.local
    
    make
    make install
    

Notes

Imagemagick configure options

libMagickCore-7.Q16HDRI.so.5: cannot open shared object file: No such file or directory

  1. Find library:

    find ~/.local -name "libMagick*.so.*"
    
  2. assuming it’s in ~/.local/lib

    ldconfig ~/.local/lib