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

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
ylazy
Posts: 4
Joined: 2017-03-05T05:09:57-07:00
Authentication code: 1151

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

Post 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!
snibgo
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

Post 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.
snibgo's IM pages: im.snibgo.com
ylazy
Posts: 4
Joined: 2017-03-05T05:09:57-07:00
Authentication code: 1151

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

Post 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!
Last edited by ylazy on 2017-03-08T01:09:27-07:00, edited 1 time in total.
snibgo
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

Post 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%.
snibgo's IM pages: im.snibgo.com
Post Reply