X-Git-Url: https://git.sesse.net/?p=pr0n;a=blobdiff_plain;f=perl%2FSesse%2Fpr0n%2FImage.pm;h=e298dc317277e1e2613345776ba9923e84374eec;hp=23b7d1b60c93fc12d63afb6f120581f0f6f9c1bc;hb=211db32f412b945988bae2a6014ff76017c42282;hpb=7ed166d00c60530874566d5e67130464e6fc0415;ds=sidebyside 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);