Delegate to independet ghostscript
Posted: 2011-11-29T05:07:08-07:00
I'm using imagemagick for batch conversion of EPS images to jpg images. So there is a need for ghostscript.
Unfortunately i have to avoid installations on the server for several reasons. So I'm using the the un-installed version of imagemagick (see below). And i have to use an un-installed version of ghostscript packaged with the application as a relative directory.
The problem is, that there is already an older ghostscript version installed on the server, which created a windows registry entry and imagemagick seems to use that registry entry for resolving the path to the ghostscript executable. For some other dependencies this installation can not be deleted.
On the page http://www.imagemagick.org/script/resources.php I found that the delegate can be configured using the delegates.xml file.
For an uninstalled windows version the configuration load order is described as followed:
$MAGICK_CONFIGURE_PATH
$MAGICK_HOME
$USERPROFILE/.magick/
client path
<current directory>
So i put the adapted delegates.xml beside the convert.exe and made the path public by setting the environment variable $MAGICK_CONFIGURE_PATH.
With convert -list delegate and identify -list delegate I see that there seems to be still another delegate file, which is evaluated by ghostscript as the configurations for
"eps" encode="ps" are duplicated, one with the ghostscript reference from the windows registry and the other with the reference from my delegates.xml ?!?
Unzipping convert.exe showed, that there is an internal delegates.xml inside the exe, which is still evaluated, though there is another one in the search path.
So, what is wrong with that? Do i have to set another configuration to avoid that the internal delegates.xml is avoided? How can I achieve that I can set the path to a specific ghostscript executable ignoring the windows registry entry? Is this specific for the un-installed version of imagemagick?
Using:
ImageMagick-6.7.3-Q16-windows.zip (Portable Win32 static at 16 bits-per-pixel. Just copy to your host and run (no installer, no Windows registry entries).
Ghostscript 9.04
Enwiroment: Windows XP / Windows 7
Thanks in advance for any hint, help or solution.
Unfortunately i have to avoid installations on the server for several reasons. So I'm using the the un-installed version of imagemagick (see below). And i have to use an un-installed version of ghostscript packaged with the application as a relative directory.
The problem is, that there is already an older ghostscript version installed on the server, which created a windows registry entry and imagemagick seems to use that registry entry for resolving the path to the ghostscript executable. For some other dependencies this installation can not be deleted.
On the page http://www.imagemagick.org/script/resources.php I found that the delegate can be configured using the delegates.xml file.
For an uninstalled windows version the configuration load order is described as followed:
$MAGICK_CONFIGURE_PATH
$MAGICK_HOME
$USERPROFILE/.magick/
client path
<current directory>
So i put the adapted delegates.xml beside the convert.exe and made the path public by setting the environment variable $MAGICK_CONFIGURE_PATH.
With convert -list delegate and identify -list delegate I see that there seems to be still another delegate file, which is evaluated by ghostscript as the configurations for
"eps" encode="ps" are duplicated, one with the ghostscript reference from the windows registry and the other with the reference from my delegates.xml ?!?
Unzipping convert.exe showed, that there is an internal delegates.xml inside the exe, which is still evaluated, though there is another one in the search path.
So, what is wrong with that? Do i have to set another configuration to avoid that the internal delegates.xml is avoided? How can I achieve that I can set the path to a specific ghostscript executable ignoring the windows registry entry? Is this specific for the un-installed version of imagemagick?
Using:
ImageMagick-6.7.3-Q16-windows.zip (Portable Win32 static at 16 bits-per-pixel. Just copy to your host and run (no installer, no Windows registry entries).
Ghostscript 9.04
Enwiroment: Windows XP / Windows 7
Thanks in advance for any hint, help or solution.