X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/e54d901565da5349b8f21e3e326d0f2d5d601ed9..89484c06d97cc7d47118ba9bcf6039431d3ff368:/IkiWiki/Plugin/img.pm 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);