use warnings;
use strict;
use IkiWiki;
-use Image::Magick;
-
-my $convert = 'convert';
my %imgdefaults;
return '';
}
+ add_depends($params{page}, $image);
my $file = bestlink($params{page}, $image) || return "[[img $image not found]]";
- add_depends($params{page}, $file);
my $dir = IkiWiki::dirname($file);
my $base = IkiWiki::basename($file);
+
+ eval q{use Image::Magick};
+ error($@) if $@;
my $im = Image::Magick->new;
my $imglink;
my $r;