Page 1 of 1

[magick portable] Move configuration files to a sub-folder

Posted: 2017-03-05T05:29:17-07:00
by ylazy
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!

Re: [magick portable] Move configuration files to a sub-folder

Posted: 2017-03-05T11:00:44-07:00
by snibgo
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.

Re: [magick portable] Move configuration files to a sub-folder

Posted: 2017-03-07T05:33:36-07:00
by ylazy
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!

Re: [magick portable] Move configuration files to a sub-folder

Posted: 2017-03-07T12:15:33-07:00
by snibgo
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%.