Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
web commit by tuomov: Absolute urls
[git.ikiwiki.info.git]
/
IkiWiki
/
Plugin
/
img.pm
diff --git
a/IkiWiki/Plugin/img.pm
b/IkiWiki/Plugin/img.pm
index 120326910988e4a2457b16268a89a79b7349e7e5..2a6533e39aa357572cdb7cc939667927f3e9e2cd 100644
(file)
--- 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;