diff options
| author | czaks <marcin@6irc.net> | 2016-06-10 12:41:53 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2016-06-10 12:41:53 +0200 |
| commit | e230f1472cdd9fe5d416196d51e905eac22ce70e (patch) | |
| tree | 3b5b3c8c39d89797a19bd90616f52bee0836dbb8 | |
| parent | c9ef21bff98698902cf5c89b3baf29a17864fd7a (diff) | |
don`t ocr non-images
| -rw-r--r-- | post.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |
