I need some advice on non-standard installation.
I'm writing a python script using image magick. It's working OK on my machine, but now I'd like to distribute it to other users in office.
If I run the script on onther computers I get errors like this:
Code: Select all
magick.exe: unable to open image 'xc:black': No such file or directory @ error/blob.c/OpenBlob/2695.
magick.exe: no decode delegate for this image format `' @ error/constitute.c/ReadImage/508.
magick.exe: no image to apply a property "%w" @ warning/property.c/GetMagickPropertyLetter/2550.
magick.exe: unknown image property "%w" @ warning/property.c/InterpretImageProperties/3488.
magick.exe: no image to apply a property "%h" @ warning/property.c/GetMagickPropertyLetter/2438.
magick.exe: unknown image property "%h" @ warning/property.c/InterpretImageProperties/3488.
magick.exe: no image to apply a property "%m" @ warning/property.c/GetMagickPropertyLetter/2469.
magick.exe: unknown image property "%m" @ warning/property.c/InterpretImageProperties/3488.
Here are some facts:
1. my script works on my machine (windows7).
2. I Installed imagick locally from .exe installator, however I don't see any paths in PATH envvar. Also I don't have MAGICK_HOME envvar
3. I copied C:\Program Files\ImageMagick-7.0.3-Q16 to a network drive and inside my python script I set envvars like this:
Code: Select all
os.environ['PATH'] = '//hal/Apps/ImageMagick/nt64/7.0.3;' + os.environ['PATH']
os.environ['MAGICK_HOME'] = '//hal/Apps/ImageMagick/nt64/7.0.3/modules/coders'
5. error from first line is for this command (executed from python script):
Code: Select all
//hal/Apps/ImageMagick/nt64/7.0.3/magick.exe -size 1020x204 xc:black //fs2/Projects/test.jpg
thanks !
-michal