Page 1 of 1
'convert.exe' missing from 7.0.3-5-Q16
Posted: 2016-10-31T19:04:57-07:00
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.
Re: 'convert.exe' missing from 7.0.3-5-Q16
Posted: 2016-10-31T21:22:13-07:00
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.
Re: 'convert.exe' missing from 7.0.3-5-Q16
Posted: 2016-10-31T23:25:33-07:00
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.
Re: 'convert.exe' missing from 7.0.3-5-Q16
Posted: 2016-10-31T23:45:31-07:00
by snibgo
Procopius wrote:Is it possible to create something like a symbolic link in Windows?
Yes, eg with the "mklink" command.
Re: 'convert.exe' missing from 7.0.3-5-Q16
Posted: 2016-11-01T00:57:27-07:00
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.
Re: 'convert.exe' missing from 7.0.3-5-Q16
Posted: 2016-11-01T03:37:33-07:00
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.