X-Git-Url: https://git.sesse.net/?p=pr0n;a=blobdiff_plain;f=perl%2FSesse%2Fpr0n%2FCommon.pm;h=3b94b592a6a543b6eb70c0670b4015711bc0199e;hp=9a3d31cc34e9eecaf737315285d3b232b6346eab;hb=acfea152b48748797784cd8c80bf65952d07a2c8;hpb=a1ed3a66ce503c2b6c2d177f9ab36a148375e0d4 diff --git a/perl/Sesse/pr0n/Common.pm b/perl/Sesse/pr0n/Common.pm index 9a3d31c..3b94b59 100644 --- a/perl/Sesse/pr0n/Common.pm +++ b/perl/Sesse/pr0n/Common.pm @@ -419,7 +419,7 @@ sub make_mipmap { push @mmlist, [ $mmwidth, $mmheight ]; } - + # Ensure that all of them are OK my $last_good_mmlocation; for my $i (0..$#mmlist) { @@ -461,6 +461,9 @@ sub make_mipmap { } } + if (!defined($img)) { + $img = read_original_image($r, $id, $dbwidth, $dbheight); + } return $img; }