'convert.exe' missing from 7.0.3-5-Q16

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Procopius
Posts: 2
Joined: 2016-10-31T18:23:47-07:00
Authentication code: 1151

'convert.exe' missing from 7.0.3-5-Q16

Post by Procopius »

I found an earlier discussion of this from 7.0.1-1, but in that case there was an option in the ImageMagick installer to "install legacy files." In the version I just downloaded and installed, 7.0.3-5-Q16, there is no such option. I am trying to use a fairly old script (downloaded from https://www.dropbox.com/s/jzdkgv2f0jrbw ... df.py?dl=0) which uses 'convert' to export layers from a GIMP image to a multi-page .pdf file. I'm not fluent in python, so I don't know how to edit the script. There is only one instance of the string 'convert' in a command, but it lacks the extension '.exe,' so I'm a little hesitant to edit it. In the end I suppose I can try it and see what happens. Is it possible to create something like a symbolic link in Windows? Could I simply create a copy of 'magick.exe' and rename it? This may not be the best place to be asking some of my questions, but I'd be grateful for any help.
User avatar
GeeMack
Posts: 718
Joined: 2015-12-01T22:09:46-07:00
Authentication code: 1151
Location: Central Illinois, USA

Re: 'convert.exe' missing from 7.0.3-5-Q16

Post by GeeMack »

Procopius wrote:I found an earlier discussion of this from 7.0.1-1, but in that case there was an option in the ImageMagick installer to "install legacy files." In the version I just downloaded and installed, 7.0.3-5-Q16, there is no such option.
You'll have to use the command "magick" instead of "convert". And for the other utilities you'll have to use them after "magick" like "magick mogrify..." and so on.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: 'convert.exe' missing from 7.0.3-5-Q16

Post by fmw42 »

On Windows, there is already a command called convert.ext. To use the one in IM 6, you must rename the IM convert.ext to something else such as IMconvert.ext. In IM 7, the syntax changed. But a simple replace of the IM convert.ext with magick.exe should do the same thing. Since magick.exe does not conflict with the Windows convert.ext, there is no need to rename it.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: 'convert.exe' missing from 7.0.3-5-Q16

Post by snibgo »

Procopius wrote:Is it possible to create something like a symbolic link in Windows?
Yes, eg with the "mklink" command.
snibgo's IM pages: im.snibgo.com
Procopius
Posts: 2
Joined: 2016-10-31T18:23:47-07:00
Authentication code: 1151

Re: 'convert.exe' missing from 7.0.3-5-Q16

Post by Procopius »

Ah, all becomes clear. I had forgotten about the Windows file named 'convert.exe.' The script comments at the top that you need to add the location of the ImageMagick directory to the GIMP's PATH. As I mentioned, I am not fluent in Python, but trying to read this script, it seems to be incomplete -- it seems to test to see if it fails to reach the ImageMagick executable, but then it never calls on 'convert' to actually process any data. I know enough other programming languages that I should be able to at least find the part of the script that does that, and there's nothing remotely like it.
I think my best bet is to give up on this script and do the process manually. I'd only be doing it in those cases where the original documents I need to send were printed too faintly to scan clear copies, so at most once a month. ImageMagick looks really interesting. I haven't done much with graphics, maybe this will be a new learning tool to explore.
Thank you for your help.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: 'convert.exe' missing from 7.0.3-5-Q16

Post by Bonzo »

There is only one instance of the string 'convert' in a command, but it lacks the extension '.exe,' so I'm a little hesitant to edit it.
I never use convert.exe as convert always works for me. If you have allowed Imagemagick to add the Imagemagick path on earlier versions of Imagemagick I have found it finds the imagemagick convert before the Windows convert program.

Anyway there should not be a problem changing convert to magick in your sample code to run with V7.
Post Reply