I'm using magick as a sub-process in my application. The problem is, magick.exe comes with many configuration files, so when I place them into my "bin" folder, they make the bin folder hard to manage, because there're many other tools inside my "bin" folder. It would be better if all configuration files is placed inside one directory, like "magick.config". Then I just have to copy magick.exe and magick.config folder to my bin folder.
Additional, anyone could tell me what "sRGB.icc" and "ImageMagick.rdf" is? Are they necessary to ensure magick.exe work?
Please help!
Thank so much!
[magick portable] Move configuration files to a sub-folder
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: [magick portable] Move configuration files to a sub-folder
See http://www.imagemagick.org/script/resources.php for locations you can use for config xml files. eg $MAGICK_CONFIGURE_PATH.
sRGB.icc is a profile that can be useful to users. IM itself doesn't use it.
I don't know what ImageMagick.rdf is. It seems to be documentation. It contains a version number that seems wrong.
sRGB.icc is a profile that can be useful to users. IM itself doesn't use it.
I don't know what ImageMagick.rdf is. It seems to be documentation. It contains a version number that seems wrong.
snibgo's IM pages: im.snibgo.com
Re: [magick portable] Move configuration files to a sub-folder
Thank you!
Actually I read the page several times but didn't understand how to change the "$MAGICK_CONFIGURE_PATH" (dummy)
Now I realize that it's simply an cmd environment variable on windows
just have to set:
set MAGICK_CONFIGURE_PATH=%applicationDirectory%\bin\magick.config
before any magick command
Thanks!
Actually I read the page several times but didn't understand how to change the "$MAGICK_CONFIGURE_PATH" (dummy)
Now I realize that it's simply an cmd environment variable on windows
just have to set:
set MAGICK_CONFIGURE_PATH=%applicationDirectory%\bin\magick.config
before any magick command
Thanks!
Last edited by ylazy on 2017-03-08T01:09:27-07:00, edited 1 time in total.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: [magick portable] Move configuration files to a sub-folder
That's it. IM documentation assume bash is used, so it needs some translation for Windows.
Bash $MAGICK_CONFIGURE_PATH is Windows %MAGICK_CONFIGURE_PATH%.
Bash $MAGICK_CONFIGURE_PATH is Windows %MAGICK_CONFIGURE_PATH%.
snibgo's IM pages: im.snibgo.com