diff options
Diffstat (limited to 'IkiWiki/Plugin/img.pm')
-rw-r--r-- | IkiWiki/Plugin/img.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/img.pm b/IkiWiki/Plugin/img.pm index 120326910..2a6533e39 100644 --- a/IkiWiki/Plugin/img.pm +++ b/IkiWiki/Plugin/img.pm @@ -6,7 +6,6 @@ package IkiWiki::Plugin::img; use warnings; use strict; use IkiWiki; -use Image::Magick; my %imgdefaults; @@ -37,6 +36,9 @@ sub preprocess (@) { #{{{ 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; |