Imagemagick Portable Windows Download

0 views
Skip to first unread message

Oreo Huppe

unread,
Aug 5, 2024, 11:26:27 AM8/5/24
to highfumbraning
Thesecond problem was security; I found another stackoverflow, but now I can't find the URL for it. They suggested giving user=everyone full control to the Windows install directory. Not a good thing to do, but I was more concerned with a quick solution at the moment.

@Mark in the comment above mentioned the quotes. I thought he meant around the directory name, but it turns out the the -thumbnail parms need to be in double quotes instead of singles quotes (at least on Windows).


You have added Imagemagick to the system path so you only need magick. You have not installed legacy file so you can not use convert. Do not use '' anywhere but "" Using "" will still work on Linux systems. \ is a Linux line continuator and I belive you should use ^I install imagemagick and it works; no changing of permissions etc.


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?


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 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: -parashar/emax64 or


Anyone have an updated easy for people like me who only know intro level programming stuff tutorial, or pre-compiled windows 10 imagemagick fftw included binaries that they could private message share on Google drive with me?


I have compiled this so many times in the distant past and once a couple of years ago (but not using the method described). It used to be near impossible but for modern IM it is much easier. Anyway, I will ping @snibgo who does this in his sleep, probably.


When I use display command from openmagick, floating dialog windows are not properly sized. I did report the issue on github, and it appears that issue is specific for i3, as I could not reproduce the same with openbox.


However when I use openbox the window is properly sized and the sizing hint is also apropriate.

Another point is the first dialog window (command window), created by left click on the image window has proper size (as seen in the above image) but all subsequent window are tiny and needs to be manually resized.


Full disclosure: This is not my guide. This is a repost of a Stackoverlflow post - -imagemagick-the-oct-2017-version-for-use-from-php-in-iis-on-a-windo by user PhilipD. After hours of searching, this was the most complete and helpful guide we could find and it saved us hours of frustration. The post on Stackoverflow has been 'put on hold' because it's not really a question and so I'm reposting here.


Philip's instructions worked flawlessly, including replacing all of the 32bit x86 libs and dependencies with 64 bit versions on a Windows 10 Pro installation, also with IIS and PHP (PHP located in C:\php, and ImageMagick installed to C:\ImageMagick).


I read through several questions and answers about this on StackOverflow, many of which are a few years old or refer to older versions of ImageMagick and/or PHP. Based largely on various information from some of these articles, and a bit of trial-and-error, we now have a working installation of ImageMagick on this server that can be used from PHP web pages in IIS on the server.


Note: In some articles on the web, you will see instructions to also copy the CORE_RL_* files from this kit to replace the files in the ImageMagick folder, but this is incorrect; the appropriate versions of these files are copied in the previous step.


Note: After installing and setting up all of the above, ImageMagick could be used in PHP to convert images, but it could not be used to convert PDF files to images. For this final step, it seemed to be necessary to also install Ghostscript - from and it only worked correctly if I installed the 64-bit version of Ghostscript (even though everything else that I installed was the 32-bit version). Installing Ghostscript was all that was needed; no changes to php.ini or any other configuration was required.


So I'm running a local install of Omeka on Wamp, windows 7. Omeka itself is up and running, so is imagemagick, the extension is loaded correctly and everything is recognized by apache/php and the way it should be.


Now, does anyone have an idea what path I should put in the settings so omeka can find it? I tried E:\ImageMagick and E:\\ImageMagick\\ because that is where the local install is, but this isn't recognized (I'm guessing omeka has a different way of pulling paths because it is meant for linux systems).

/usr/local/bin/ and /usr/bin/ obviously aren't working since I'm using windows. So... any ideas? I thought maybe I could try and direct it to wamp's directory where apache and php are installed, but I don't know how to do that :( (tried it with "root" and ../ but neither will work)


Yep, convert.exe and when I type "convert" in the command prompt (after navigating to E:\) it also runs the convert file without problems. That's why I'm so puzzled that it's not finding it. It is also in the System Paths, so everything is working just like it should. I'm so close to getting it to work..!


I think the ".exe" ending for the binary is messing up our code for checking if the path is correct, but I don't think the same problem would happen when Omeka actually tries to use ImageMagick to create the thumbnails.


It works now.. I changed all the letters to lowercase, it seems to have less problems wth the directory now. It still says "Failed", but the upload works (after testing it anyway like you said). thanks for your help!


We should be able to make the ImageMagick test work slightly differently so it works on Windows, but since Windows isn't a supported platform for Omeka, fixes for Windows-specific issues honestly aren't a priority.


I can see how "making it work for windows users" is not a priority, but I think the issues you have to fix are actually rather small to make it work (I assume at least, since I managed to fix them myself after I found out what was wrong and I'm pretty much a coding noob) and once they're fixed, omeka should be performing perfectly under windows as well. At least it has been doing that for me so far.

Anyway, the issue:

I did, actually, have an issue until I got it to work.

I used XAMPP first, had some issues and thought maybe it was XAMPP's fault after having read some threads in these forums. So then I installed WAMP. had the same issue: the install would lead to a blank page.

The best hint was given to me by this thread:

(**will add the link later, I can't seem to find it now).

Basically, it said that you should try importing the .sql files manually, because the Zend framework had trouble installing it under windows when the strings in some of the tables were too long.

Upon checking the database using phpmyadmin, I noticed that the install apparenty stopped when it reached certain .sql files (such as elements, element_sets I think, and a few others). So I found two solutions to this:

- manually import all .sql files, in which case you still have to manually edit all of the names because of the table prefixes (which takes a while)

or

- find the culprits (3 or 4 tables, that is, .sql files, were affected I think) and shorten the strings in the files manually before the install (I used notepad). then let omeka do the install. It should install fine and without errors.


tl;dr: So basically the only issue I found when installing was the fact that some of the strings were too long. if you shorten some of the descriptions or find a different way of including them, it may save a lot of people some frustration.


Another small issue I found: When I tried to upload my first file, it gave me an error message about the element "Description" being missing. I had to manually add it to the elements table, after that everything was fine. May be a bug as well.


This is what did it for me. However, item_types, and element_sets were not the only ones, I remember that 3 or 4 tables were affected. Basically, I ran the install, had a look at phpmyadmin to see how far the install got (referring to the list in Schema.php). Then I would comment out that specific table that had stoped the install at this point in Schema.php and import the .sql- file manually.

Then I cleared all the other tables from the database for a fresh install, ran the install again, and repeated the process (3-4 times) until it installed completely.


In this topic you will find the basic steps you need to take in order to make sure all KTML image editing features are working fine. This includes the installation of the ImageMagick library for both Unix and Windows systems.


Note: The steps depicted in this topic are accurate and available at the time of this writing. For up-to-date instructions on how to install the latest ImageMagick version available, check out the product's installation instructions - online, or in the downloaded package.

3a8082e126
Reply all
Reply to author
Forward
0 new messages