Update: As of early October 2016 emacs for windows does not support ImageMagick versions 7.x or greater as discussed here and here.

Presumably some combination of an earlier version of emacs for windows and ImageMagick prior to version 7.x should work. Is anybody using emacs for windows with functioning ImageMagick support (resizing images etc.)? If so, please let us know which versions of each you are using.


I want to resize images displayed inline in org mode. Apparently this requires Emacs to be compiled with Imagemagick. I need Emacs for windows, but have not found a version compiled with Imagemagick. Can someone point me to a version of Emacs for windows compiled with Imagemagick?

If I have to build a version myself, I noticed the official nt/insall.64 claims:

we need to disable Imagemagick because Emacs does not yet support it on Windows.

Is this still true?

Note, my version of Emacs for windows does have support to display images, but it is unable to resize images.

I hacked some support for image scaling in windows using the imagemagick executables here: https://github.com/jkitchin/scimax/blob/master/scimax-org.el#L1158

As noted in some comments above, you need to have the mogrify program installed. With the code at that location, images get scaled in org-mode on windows for us.

Edit: After some experimentation, it looks like the following information is not necessarily talking about the correct kind of ImageMagick support. I use eimp to resize images in image-mode, and eimp uses the ImageMagick utilities directly; unfortunately, I confused this with the type of ImageMagick support that the OP is talking about.


When running Emacs on non-Cygwin-equipped Windows, I use a pre-compiled version downloaded from emacsbinw64.sourceforge.net; it has ImageMagick support. Bear in mind that you will also have to install ImageMagick itself.

Update: Apparently ImageMagick support was dropped (hopefully temporarily) after I downloaded the version I'm using (25.0.50.1). I'm not sure exactly where ImageMagick support failed (according to the OP's comment, sometime prior to 25.0.94), but this page has the most complete set of downloads I can find. See this discussion thread for more information.

  • I think currently emacs-w64 doesn't support it according to sourceforge.net/p/emacsbinw64/discussion/general/thread/…. – Ben Oct 1 '16 at 13:46
  • @Ben: Ah, whoops. I guess my version was before the incompatibility then. Updated the answer to talk about this; thanks! – Aaron Harris Oct 2 '16 at 13:22
  • Following Aaron's suggestion, pre-test 25.0.94 still does not resize images. Imagemagick is installed. This is non cygwin on windows 7. Some tests reveal: (image-type-available-p 'imagemagick) nil (getenv "PATH") "C:\\Program Files\\ImageMagick-7.0.3-Q16; I cannot find 25.0.50.1. I will gladly use any version that supports imagemagick. – Snelephant Oct 3 '16 at 18:35
  • @Snelephant Well, crap. Probably best to fall back to version 24 then. I updated the link in the answer to point to this directory, since we're not sure exactly when support vanished. I'd try version 24.5-1 under releases next. – Aaron Harris Oct 3 '16 at 20:50
  • @AaronHarris No success with version 24.5-1 either. Does this version work for you? I'm starting to suspect I am missing something else. Images display, but do not resize. Can anyone suggest troubleshooting steps to test Imagemagick and resizing images? For example using #+attr_org: :width 200 in the org file or setq org-image-actual-width 600 in init.el? – Snelephant Oct 4 '16 at 16:46

I have released a patched version of emacs-26.0.90 for Windows (64-bit) with imagemagick 7 and pdf-tools support, among other things. Dependencies are included. Everything seems to be working. Get it here: https://github.com/m-parashar/emax64 or https://ntemacs.sourceforge.io/.

Unpatched official releases refuse to compile with either v6 or v7, and Cygwin is far too messy.

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.