X-Git-Url: https://git.sesse.net/?p=pr0n;a=blobdiff_plain;f=perl%2FSesse%2Fpr0n%2FImage.pm;h=e298dc317277e1e2613345776ba9923e84374eec;hp=23b7d1b60c93fc12d63afb6f120581f0f6f9c1bc;hb=e584d0f808e6c457850757a21ccc0b118b980ae7;hpb=ec8aac6290cf893d742803fb4eb254d00eae0e5b diff --git a/perl/Sesse/pr0n/Image.pm b/perl/Sesse/pr0n/Image.pm index 23b7d1b..e298dc3 100644 --- a/perl/Sesse/pr0n/Image.pm +++ b/perl/Sesse/pr0n/Image.pm @@ -47,11 +47,6 @@ sub handler { $dbwidth = $ref->{'width'}; $dbheight = $ref->{'height'}; - #} - - $dbwidth = -1 unless defined($dbwidth); - $dbheight = -1 unless defined($dbheight); - # Scale if we need to do so my ($fname,$thumbnail) = Sesse::pr0n::Common::ensure_cached($r, $filename, $id, $dbwidth, $dbheight, $infobox, $xres, $yres);