From: Steinar H. Gunderson Date: Mon, 13 Jul 2009 15:42:19 +0000 (+0200) Subject: qscale integration broke multi-image thumbnailing; restoring it. X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=6170d7a868e3fe5765600166e8cdad487cd6c103;hp=1a0b46de9ea9518a6150226144dbe8f60e984d17 qscale integration broke multi-image thumbnailing; restoring it. --- diff --git a/perl/Sesse/pr0n/Common.pm b/perl/Sesse/pr0n/Common.pm index 9df3acc..34ee8d9 100644 --- a/perl/Sesse/pr0n/Common.pm +++ b/perl/Sesse/pr0n/Common.pm @@ -682,7 +682,7 @@ sub read_original_image { # If we use ->[0] unconditionally, text rendering (!) seems to crash my $img; - if (ref($magick)) { + if (ref($magick) !~ /Image::Magick/) { $img = $magick; } else { $img = (scalar @$magick > 1) ? $magick->[0] : $magick;