Changeset 113

Show
Ignore:
Timestamp:
12.12.2006 21:02:40 (2 years ago)
Author:
decoder
Message:

Fixes wrong file size displayed when fixed gif file size limitation applies

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/devel/FuzzyOcr.pm

    r112 r113  
    444444                } 
    445445            } 
    446  
    447             if (defined($conf->{focr_max_size_gif}) and (((stat($tfile))[7]) > $conf->{focr_max_size_gif})) { 
    448                 infolog("Fixed GIF file size ($$pic{fsize}) exceeds maximum file size for this format, skipping..."); 
     446            my $fixedsize = (stat($tfile))[7]; 
     447            if (defined($conf->{focr_max_size_gif}) and ($fixedsize > $conf->{focr_max_size_gif})) { 
     448                infolog("Fixed GIF file size ($fixedsize) exceeds maximum file size for this format, skipping..."); 
    449449                next; 
    450450            }