summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2021-03-23 17:56:56 +0100
committerJonas Smedegaard <dr@jones.dk>2021-03-23 17:56:56 +0100
commitf32abc6e496219a6df9caa382159bdab0e83f5a2 (patch)
treed47bbcc5ae08cc0bf7e9c0c7213f4ffcddcfbf85 /IkiWiki
parent11ba999eeb3397e896d311be513fcec1a96789f4 (diff)
sync with ikiwiki 3.20171001
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/img.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/img.pm b/IkiWiki/Plugin/img.pm
index 740c44f..79cfba2 100644
--- a/IkiWiki/Plugin/img.pm
+++ b/IkiWiki/Plugin/img.pm
@@ -174,6 +174,12 @@ sub preprocess (@) {
my $r = $im->Read("$format:$srcfile\[$pagenumber]");
error sprintf(gettext("failed to read %s: %s"), $file, $r) if $r;
+ if ($config{deterministic}) {
+ $im->Set('date:create' => 0);
+ $im->Set('date:modify' => 0);
+ $im->Set('option' => 'png:exclude-chunk=time');
+ }
+
if (! defined $im->Get("width") || ! defined $im->Get("height")) {
error sprintf(gettext("failed to get dimensions of %s"), $file);
}