user directory for filter modules

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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

user directory for filter modules

Post 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?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: user directory for filter modules

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: user directory for filter modules

Post 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?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: user directory for filter modules

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: user directory for filter modules

Post 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?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: user directory for filter modules

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: user directory for filter modules

Post 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?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: user directory for filter modules

Post by magick »

Right, use the second, delete the first.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: user directory for filter modules

Post by fmw42 »

magick wrote:Right, use the second, delete the first.
Fixed and duplicated list for filters.
Post Reply