Menu

ImageMagick support

2016-09-20
2018-07-05
  • David Gentzel

    David Gentzel - 2016-09-20

    According to the Emacs wiki (https://www.emacswiki.org/emacs/ImageMagick) ImageMagick is supported on Windows. I'm not sure if this is in error or whether your mention of lack of support in Windows is now obsolete.

     
  • zklhp

    zklhp - 2016-09-21

    Hi David,
    Well, when I enable it, the build fails. It seems a bug in the msys2 project. A ugly patch seems to make it work, but I don’t like it. Can you build Emacs using msys2/mingw-w64 with ImageMagick enable?

    Regards,
    Chris

     
  • David Gentzel

    David Gentzel - 2016-09-22

    I built one locally without specifying --without-imagemagick. I had no build errors, but haven't tested it yet.

     
  • David Gentzel

    David Gentzel - 2016-09-22

    The configure test fails, so even without --without-imagemagick the support is disabled. I may dig into this if I find the time.

     
  • David Gentzel

    David Gentzel - 2016-09-26

    FWIW, I was able to build 25.1 64-bit Windows with ImageMagick support. I based it on the work done in the 24 line by Alexander Shukaev and rzl24ozi.

    Some remaining issues:
    1. configure.ac rules are incomplete/wrong. Needed to manually update a few files after config.
    2. Not clear what set of ImageMagick DLLs are needed. I'm currently being lazy and just grabbing all of them, but I should clean this up.
    3. This works with ImageMagick < 7.0. With versions >= 7.0, include directories & DLL names change, so this will need some configure changes to be able to handle both lines.

    Patches aren't too invasive. When time permits I'll try to clean up the configure issues and float a trial balloon on emacs-devel and see if there's interest in merging this into git.

     

    Last edit: David Gentzel 2016-09-26
  • zklhp

    zklhp - 2016-09-27

    Hi David,
    I’m looking forward your patch. I knew some patches can help, but really don’t have time to drive into.

    Thanks,
    Chris

     
  • Angelo Graziosi

    Angelo Graziosi - 2016-10-05

    The issues are related to ImageMagick-7. After the upgrade to the version 7.x, the build of Emacs stopped adding support for imagemagick. This occurs because ImageMagick people has changed the files naming so 'configure' fails in finding the needed headers. But the changes in version 7.x have broken also image.c file in Emacs source. I tried to flag these issues here:

    https://sourceforge.net/p/msys2/tickets/270/

    and here:

    http://lists.gnu.org/archive/html/emacs-devel/2016-10/msg00011.html

    but, it seems that almost none takes care of it. When the major GNU/Linux distributions will upgrade to ImageMagick 7.x , the problems will come out in their entirety..

     
  • jingxlim

    jingxlim - 2018-07-03

    I wanted to revisit this issue again. m-parashar managed to compile Emacs with Imagemagick support. This is his build: emax64 (https://ntemacs.sourceforge.io/).

    Do you think you might be able to add Imagemagick support in your next release?

     
    • zklhp

      zklhp - 2018-07-05

      Sorry, I don’t think I have time to do that.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.