ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[livejournal] r17630: LJSUP-7279: We shouldn't put the picture...

Committer: ssafronova
LJSUP-7279: We shouldn't put the pictures to domino (ljtimes) if the pictures less than 100x100 pxls
U   trunk/cgi-bin/ljuserpics.pl
Modified: trunk/cgi-bin/ljuserpics.pl
===================================================================
--- trunk/cgi-bin/ljuserpics.pl	2010-11-02 04:34:19 UTC (rev 17629)
+++ trunk/cgi-bin/ljuserpics.pl	2010-11-02 08:56:51 UTC (rev 17630)
@@ -666,7 +666,7 @@
 
     my @cancel_size = split /x/, $cancel_size;
     return { status => 'small' }
-        if $cancel_size and $ow <= $cancel_size[0] and $oh <= $cancel_size[1];
+        if $cancel_size[0] and $ow < $cancel_size[0] or $cancel_size[1] and $oh < $cancel_size[1];
 
     # converts an ImageMagick object to the form returned to our callers
     my $imageParams = sub {

Tags: livejournal, pl, ssafronova
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments