Changeset 34
- Timestamp:
- 13.11.2006 16:52:20 (2 years ago)
- Files:
-
- trunk/devel/FuzzyOcr.pm (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/devel/FuzzyOcr.pm
r29 r34 167 167 if ( substr($$pic{header},0,3) eq "\x47\x49\x46" ) { 168 168 debuglog("Found GIF header name=\"$$pic{fname}\""); 169 if ($conf->{focr_skip_gif}) { 170 debuglog("Skipping image check"); 171 next IMAGE; 172 } 169 173 $ptype = 1; 170 174 my $s = (stat($file))[7]; … … 288 292 elsif ( substr($$pic{header},0,2) eq "\xff\xd8" ) { 289 293 debuglog("Found JPEG header name=\"$$pic{fname}\""); 294 if ($conf->{focr_skip_jpeg}) { 295 debuglog("Skipping image check"); 296 next IMAGE; 297 } 290 298 $ptype = 2; 291 299 my $s = (stat($file))[7]; … … 316 324 elsif ( substr($$pic{header},0,4) eq "\x89\x50\x4e\x47" ) { 317 325 debuglog("Found PNG header name=\"$$pic{fname}\""); 326 if ($conf->{focr_skip_png}) { 327 debuglog("Skipping image check"); 328 next IMAGE; 329 } 318 330 $ptype = 3; 319 331 my $s = (stat($file))[7]; … … 345 357 elsif ( substr($$pic{header},0,2) eq "BM" ) { 346 358 debuglog("Found BMP header name=\"$$pic{fname}\""); 359 if ($conf->{focr_skip_bmp}) { 360 debuglog("Skipping image check"); 361 next IMAGE; 362 } 347 363 $ptype = 4; 348 364 my $s = (stat($file))[7]; … … 376 392 ) { 377 393 debuglog("Found TIFF header name=\"$$pic{fname}\""); 394 if ($conf->{focr_skip_tiff}) { 395 debuglog("Skipping image check"); 396 next IMAGE; 397 } 378 398 $ptype = 5; 379 399 my $s = (stat($file))[7];
