X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/e54d901565da5349b8f21e3e326d0f2d5d601ed9..a6e1274f468477cceb9b118aa5b49bd74e9385c4:/IkiWiki/Plugin/img.pm?ds=sidebyside diff --git a/IkiWiki/Plugin/img.pm b/IkiWiki/Plugin/img.pm index bde5a3e1a..120326910 100644 --- a/IkiWiki/Plugin/img.pm +++ b/IkiWiki/Plugin/img.pm @@ -8,8 +8,6 @@ use strict; use IkiWiki; use Image::Magick; -my $convert = 'convert'; - my %imgdefaults; sub import { #{{{ @@ -34,8 +32,8 @@ sub preprocess (@) { #{{{ 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);