X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/54c90b2d41488657c583e657b16e363c9eb999fa..d61935c8ed85e5b4be6292b42516832f42a3a5b0:/IkiWiki/Plugin/img.pm diff --git a/IkiWiki/Plugin/img.pm b/IkiWiki/Plugin/img.pm index 20893f56c..2a6533e39 100644 --- a/IkiWiki/Plugin/img.pm +++ b/IkiWiki/Plugin/img.pm @@ -6,9 +6,6 @@ package IkiWiki::Plugin::img; use warnings; use strict; use IkiWiki; -use Image::Magick; - -my $convert = 'convert'; my %imgdefaults; @@ -39,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;