Browse Source

don`t ocr non-images

pull/40/head
czaks 8 years ago
parent
commit
e230f1472c
  1. 2
      post.php

2
post.php

@ -788,7 +788,7 @@ if (isset($_POST['delete'])) {
$file['thumbheight'] = $size[1];
}
if ($config['tesseract_ocr']) { // Let's OCR it!
if ($config['tesseract_ocr'] && $file['thumb'] != 'file') { // Let's OCR it!
$fname = $file['tmp_name'];
if ($file['height'] > 500 || $file['width'] > 500) {

Loading…
Cancel
Save