Name

IMAGE_MOGRIFY — specify path to the ImageMagick mogrify command

SYNOPSIS

{ filename }

DESCRIPTION

Specify full filesystem path to the ImageMagick mogrify command.

ImageMagick's functions are used to perform image manipulation, such as resizing and format conversion (and that's not all, ImageMagick is a very capable tool).

VARIABLE TYPE

Global variable

EXAMPLES

Example:

Put the following in interchange.cfg:

Variable IMAGE_MOGRIFY /usr/bin/mogrify

NOTES

On a case by case basis, Interchange code might attempt an autodetection of the mogrify command location.

AVAILABILITY

IMAGE_MOGRIFY is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: code/SystemTag/image.tag
Line 214 (context shows lines 204-218)

my $mgkpath = $newpath;
my $ext;
$mgkpath =~ s/\.(\w+)$/.mgk/
  and $ext = $1;

File::Copy::copy($path, $newpath)
  or do {
    logError("%s: Unable to create image '%s'", 'image tag', $newpath);
    last MOGIT;
  };
my $exec = $Global::Variable->{IMAGE_MOGRIFY};
if(! $exec) {
  my @dirs = split /:/, "/usr/X11R6/bin:$ENV{PATH}";
  for(@dirs) {
    next unless -x "$_/mogrify";

Source: code/SystemTag/image.tag
Line 220 (context shows lines 210-224)

or do {
  logError("%s: Unable to create image '%s'", 'image tag', $newpath);
  last MOGIT;
};
my $exec = $Global::Variable->{IMAGE_MOGRIFY};
if(! $exec) {
my @dirs = split /:/, "/usr/X11R6/bin:$ENV{PATH}";
for(@dirs) {
  next unless -x "$_/mogrify";
           $exec = "$_/mogrify";
           $Global::Variable->{IMAGE_MOGRIFY} = $exec;
          last;
        }
      }
      last MOGIT unless $exec;

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!