Page 1 of 1

user directory for filter modules

Posted: 2011-03-31T20:53:50-07:00
by fmw42
According to http://www.imagemagick.org/script/resources.php

Modules

ImageMagick's image format support is usually provided in the form of loadable modules. It searches for loadable modules in the following order and it uses the first match found:

$MAGICK_HOME/lib/ImageMagick-6.6.9/modules-Q16/coders/
$HOME/.magick/
<client path>/../lib/ImageMagick-6.6.9/modules-Q16/coders/
$MAGICK_HOME/lib/ImageMagick-6.6.9/modules-Q16/coders
$MAGICK_HOME/share/ImageMagick-6.6.9/modules-Q16/coders
$HOME/.magick/
<client path>/lib/ImageMagick-6.6.9/modules-Q16/coders

Does this same scheme work for filters? Therefore should I be able to put my custom filters in $HOME/.magick or $HOME/.magick/filters and thus not have to install them each new major release?

Re: user directory for filter modules

Posted: 2011-04-01T07:18:16-07:00
by magick
The documentation is out of sync with the changes we initiated from the recommendations from the Debian Linux team. We'll update the documentation sometime today.

Re: user directory for filter modules

Posted: 2011-04-01T09:53:40-07:00
by fmw42
magick wrote:The documentation is out of sync with the changes we initiated from the recommendations from the Debian Linux team. We'll update the documentation sometime today.

Will the current MagicFilterKit (and custom one you sent me) still put the compiled filter files in the right place?

Re: user directory for filter modules

Posted: 2011-04-01T10:15:51-07:00
by magick
MagickFilterKit picks up the configuration paths from the MagickCore-config which is configured when you install ImageMagick. So yes, your old kits should install properly with the current configuration scheme.

Re: user directory for filter modules

Posted: 2011-04-01T13:31:33-07:00
by fmw42
magick wrote:The documentation is out of sync with the changes we initiated from the recommendations from the Debian Linux team. We'll update the documentation sometime today.

Looks like some things have changed. Forgive my ignorance and if this is premature, but I don't see anything about Filters. Do I assume the same scheme applies to Filters as to Modules, that is

$MAGICK_HOME/lib/ImageMagick-6.6.9/modules-Q16/filters/
$HOME/.magick/
<client path>/../lib/ImageMagick-6.6.9/modules-Q16/filters/
$MAGICK_HOME/lib/ImageMagick-6.6.9/modules-Q16/filters
$MAGICK_HOME/share/ImageMagick-6.6.9/modules-Q16/filters
$HOME/.magick/
<client path>/lib/ImageMagick-6.6.9/modules-Q16/filters


If that is the case, may I edit the page to indicate such?

Second, may I put my custom filters in a subdirectory of $HOME/.magick/ or need they be individually in that directory?

Third, why is $HOME/.magick/ listed twice for modules?

Re: user directory for filter modules

Posted: 2011-04-01T16:14:28-07:00
by magick
You can edit the web pages anytime. Your assumption about the filter path is correct.

If you put your filters in a subdirectory of $HOME/.magick/, ImageMagick most likely won't find them since it would not be in the search path.

Re: user directory for filter modules

Posted: 2011-04-01T17:00:07-07:00
by fmw42
magick wrote:You can edit the web pages anytime. Your assumption about the filter path is correct.

If you put your filters in a subdirectory of $HOME/.magick/, ImageMagick most likely won't find them since it would not be in the search path.

I will edit it. But there is still two items listed for $HOME/.magick/ in Modules. Which is correct? I would assume the one lower down is the correct one. Is that correct or not?

Re: user directory for filter modules

Posted: 2011-04-01T17:06:20-07:00
by magick
Right, use the second, delete the first.

Re: user directory for filter modules

Posted: 2011-04-01T17:34:29-07:00
by fmw42
magick wrote:Right, use the second, delete the first.
Fixed and duplicated list for filters.